Skip to content

Latest commit

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

MUST READ

Development on this project has moved to https://github.com/patrickbdev/PBImageView under the new name PBImageView.

PBImageView supports Swift 3.0. The last version INSImageView supports is Swift 2.2.

INSImageView

VersionLicensePlatform

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

letimageView=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.

letimage= imageView.originalImage
lethighlightedImage= 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, patbdev@gmail.com

License

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

About

A UIImageView that allows for animations between UIViewContentModes

Resources

Stars

20 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages