Latest 2.2.0
Homepage https://github.com/tadija/AEImage
License MIT
Platforms ios 9.0
Authors

Adaptive image viewer for iOS (with support for zoom, gyro motion and infinite scroll)

Language Swift 4.0
Platforms iOS
License MIT

CocoaPods Version
Carthage compatible
Swift Package Manager compatible

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
  • Gyro motion based scrolling (optional)
  • Infinite scroll effect – horizontal and vertical (optional)

Usage

  • Use ImageScrollView directly as any UIImageView but with all additional options, or:

  • Subclass ImageViewController and configure its imageScrollView and motionSettings as you need.
import AEImage

class ReadmeViewController: ImageViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        imageScrollView.displayMode = .fillHeight
        imageScrollView.infiniteScroll = .horizontal

        motionSettings.isEnabled = true
        motionSettings.sensitivity = 1.5

        image = UIImage(named: "demo")
    }

}

For more details check out Sources and Example.

Installation

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

License

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

Latest podspec

{
    "name": "AEImage",
    "version": "2.2.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Adaptive image viewer for iOS (with support for zoom, gyro motion and infinite scroll)",
    "homepage": "https://github.com/tadija/AEImage",
    "authors": {
        "tadija": "[email protected]"
    },
    "social_media_url": "http://twitter.com/tadija",
    "source": {
        "git": "https://github.com/tadija/AEImage.git",
        "tag": "2.2.0"
    },
    "source_files": "Sources/*.swift",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This