feat: Added - Add support for tvOS, macCatalyst
Simple SwiftUI ImageView that enables dragging and zooming.
struct ZoomableImageView
Double Tap the view will zoom-in.
ZoomableImageView(image: UIImage(systemName: "photo")!)
@State var image: UIImage = UIImage() var body: some View { ZoomableImageView(image: image, maximumZoomScale: 10) .task { do { let url = URL(string: "https://apod.nasa.gov/apod/image/2108/PlutoEnhancedHiRes_NewHorizons_960.jpg")! let (imageLocalURL, _) = try await URLSession.shared.download(from: url) let imageData = try Data(contentsOf: imageLocalURL) image = UIImage(data: imageData)! } catch { print(error) } } }
History
The MIT License (MIT)
ZoomableImageView
Simple SwiftUI ImageView that enables dragging and zooming.
Declaration
Overview
Double Tap the view will zoom-in.
History
History
LICENSE
The MIT License (MIT)