Latest 0.1.6
Homepage https://github.com/instilio/INSImageView
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

Description

A UIImageView that allows for animations between UIViewContentModes through the use of UIView block-based animations e.g. UIView.animateWithDuration…

Animation Image

Compatibility

Tested with iOS8 and iOS9 using Swift

Usage

let imageView = INSImageView(...)
imageView.contentMode = .ScaleAspectFit

UIView.animateWithDuration(1,
    animations: {
      self.imageView.contentMode = .ScaleAspectFill
    }
)

Caveat

Due to the way INSImageView is implemented, the image and highlightedImage property getters need to be NOOPed. If you’re wishing to get the original image please use originalImage or originalHighlightedImage respectively.

let image = imageView.originalImage
let highlightedImage = imageView.originalHighlightedImage

Installation

INSImageView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "INSImageView"

TODO

  • [ ] Tests (including creating INSImageView from code/storyboard)

Contact

Patrick, [email protected]

License

INSImageView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "INSImageView",
    "version": "0.1.6",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/instilio/INSImageView",
    "authors": {
        "Patrick": "[email protected]"
    },
    "summary": "A replacement for UIImageView which provides animation transitions between UIViewContentModes.",
    "source": {
        "git": "https://github.com/instilio/INSImageView.git",
        "tag": "0.1.6"
    },
    "source_files": "Pod/INSImageView.swift",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This