Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
/ Zoomable Public archive
forked from jasudev/Zoomable

It is a container that allows you to zoom in and out of an image using only SwiftUI.

License

Notifications You must be signed in to change notification settings

sergey-ilyin/Zoomable

 
 

Repository files navigation

Zoomable for SwiftUI

It is a container that allows you to zoom in and out of an image using only SwiftUI.

Platforms iOS macOS instagram SPM MIT

Screenshot

Example Usages

  1. ZoomableView

    ZoomableView(size: CGSize(width: 300, height: 300), min: 1.0, max: 6.0, showsIndicators: true) {
        Image("image")
            .resizable()
            .scaledToFit()
            .background(Color.black)
            .clipped()
    }
  2. ZoomableImageView

    ZoomableImageView(url: url, min: 1.0, max: 3.0, showsIndicators: true) {
        Text("ZoomableImageView")
            .padding()
            .background(Color.black.opacity(0.5))
            .cornerRadius(8)
            .foregroundColor(Color.white)
    }

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, adding Zoomable as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/jasudev/Zoomable.git", .branch("main"))
]

Contact

instagram : @dev.fabula
email : [email protected]

License

Zoomable is available under the MIT license. See the LICENSE file for more info.

About

It is a container that allows you to zoom in and out of an image using only SwiftUI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%