BSImageView 1.0.3

BSImageView 1.0.3

Maintained by Joakim Gyllström.



  • By
  • Joakim Gyllström

BSImageView

BSImageView is an image view which lets you animate contentMode changes.

demo

Usage

import BSImageView
...

let imageView: BSImageView = ...
...

UIView.animate(withDuration: 0.3) {
    imageView.contentMode = .scaleAspectFill // Or whichever contentMode you want to animate to.
}

Author

Joakim Gyllström, [email protected]

License

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