Adaptive image viewer for iOS (with support for zoom, gyro motion and infinite scroll)
Super awesome lightweight and easy to use image viewer with all the standard options + some more. It may be used from code or storyboard and as it frame changes, it will always rescale image appropriately based on its settings.
It has standard zoom support, but also integrated gyro motion tracking and image scrolling based on device movement. Last but not least, it has "infinite scroll" effect in both horizontal and vertical direction which may be useful for 360 panorama images or whatever you may think of.
- Adaptive image viewer with multiple display modes
- Infinite scroll effect - horizontal and vertical (optional`)
- Gyro motion based scrolling (optional)
- Use
ImageScrollView
as anyUIImageView
but with all additional options - Use convenience
ImageViewController
orImageMotionViewController
import AEImage
class ExampleImageViewController: ImageMotionViewController {
override func viewDidLoad() {
super.viewDidLoad()
imageScrollView.displayMode = .fillHeight
imageScrollView.infiniteScroll = .horizontal
isMotionEnabled = true
motionSensitivity = 1.5
image = UIImage(named: "demo")
}
}
.package(url: "https://github.com/tadija/AEImage.git", .upToNextMajor(from: "3.1.1")),
github "tadija/AEImage"
pod 'AEImage'
This code is released under the MIT license. See LICENSE for details.