A customizable and lightweight SwiftUI image viewer with smooth zooming, panning and double-tap-to-zoom functionality.
- Requirements
- Uses
- Features
- Installation
- Usage
- Applications using ZoomableSwiftImageView
- Contributions
- Changelog
- License
- iOS 13.0+
- macOS 11.0+
- Xcode 11+
Image Galleries: Display images where users can zoom in and out on images for a detailed view.
Current Version: 1.0.0
There are several ways to install this library.
- Using Swift Package Manager (SPM):
- In Xcode, go to
File>Add Package Dependencies... - Enter the repository URL: https://github.com/IODevBlue/ZoomableSwiftImageView.git.
- Choose the version you want to install (e.g., 1.0.0).
- CocoaPods:
- Add the following line to your Podfile:
pod 'ZoomableSwiftImageView', '~> 1.0.0'- Then run:
pod install- Carthage:
- Add the following line to your Cartfile:
github "IODevBlue/ZoomableSwiftImageView" ~> 1.0.0- Then run:
carthage update --platform iOS- Follow the instructions to link the framework to your project.
- Manually: Download the project zip file.
- Navigate to the
Sourcesfolder and copy theZoomableSwiftImageViewsubfolder into your Xcode project. - Alternatively,
ZoomableSwiftImageViewis a single source file. You can just copy theZoomableSwiftImageView.swiftfile to your Xcode project.
If you do make major or minor improvements to the source code, consider making a pull request or an issue to make a contribution. Check the Contributing for more information.
Create an instance of ZoomableSwiftImageView by providing an Image:
import SwiftUI
struct ContentView: View {
var body: some View {
ZoomableSwiftImageView(image: Image("your_image_name"))
}
}If your application uses ZoomableSwiftImageView and you'd love to showcase, send an email containing:
- An app icon
- A link to download your application.
- A related Github repository.
Contributors are welcome!
NOTE: This repository is split into two branches:
- main branch
- development branch
All developing implementations and proposed changes are pushed to the development branch and finalized updates are pushed to the main branch.
Check the Contributing for more information.
- 1.0.0
- Initial release
More version history can be gotten from the Change log file.
Copyright 2024 IO DevBlue
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


