Zoomable

0.5.0

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

What's New

0.5.0

2022-01-28T13:45:48Z

Zoomable

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)
    }

Dependencies

dependencies: [
    .package(url: "https://github.com/SDWebImage/SDWebImage.git", .branch("master")),
    .package(url: "https://github.com/SDWebImage/SDWebImageSwiftUI.git", .branch("master"))
]

Contact

instagram : @dev.fabula
email : dev.fabula@gmail.com

License

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

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

Last updated: Mon Nov 25 2024 13:24:16 GMT-1000 (Hawaii-Aleutian Standard Time)