TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Sep 2016 |
SPMSupports SPM | ✗ |
Maintained by Patrick.
A UIImageView that allows for animations between UIViewContentModes through the use of UIView block-based animations e.g. UIView.animateWithDuration…
Tested with iOS8 and iOS9 using Swift
let imageView = INSImageView(...)
imageView.contentMode = .ScaleAspectFit
UIView.animateWithDuration(1,
animations: {
self.imageView.contentMode = .ScaleAspectFill
}
)
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
INSImageView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "INSImageView"
Patrick, [email protected]
INSImageView is available under the MIT license. See the LICENSE file for more info.