Skip to content

An image view that can animate content mode changes

License

Notifications You must be signed in to change notification settings

mikaoj/BSImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, joakim@backslashed.se

License

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

About

An image view that can animate content mode changes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •