https://github.com/mikaoj/bsimageview
An image view that can animate content mode changes
https://github.com/mikaoj/bsimageview
animate animation contentmode swift uiimageview
Last synced: 11 months ago
JSON representation
An image view that can animate content mode changes
- Host: GitHub
- URL: https://github.com/mikaoj/bsimageview
- Owner: mikaoj
- License: mit
- Created: 2018-07-28T09:29:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T05:04:12.000Z (about 7 years ago)
- Last Synced: 2025-07-25T14:42:10.922Z (11 months ago)
- Topics: animate, animation, contentmode, swift, uiimageview
- Language: Swift
- Size: 4.34 MB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BSImageView
BSImageView is an image view which lets you animate contentMode changes.

## Usage
```swift
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.