Swiftpack.co - Package - tadija/AEImage

Swift 5 Platforms iOS CocoaPods Carthage Swift Package Manager License MIT

AEImage

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.

AEImage

Index

Features

  • Adaptive image viewer with multiple display modes
  • Infinite scroll effect - horizontal and vertical (optional`)
  • Gyro motion based scrolling (optional)

Usage

  • Use ImageScrollView as any UIImageView but with all additional options
  • Use convenience ImageViewController or ImageMotionViewController
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")
    }
    
}

For more details check out Sources and Example.

Installation

.Package(url: "https://github.com/tadija/AEImage.git", majorVersion: 3)
github "tadija/AEImage"
pod 'AEImage'

License

This code is released under the MIT license. See LICENSE for details.

Github

link
Stars: 14
Help us keep the lights on

Dependencies

Used By

Total: 0