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: 28 days 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 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T05:04:12.000Z (about 6 years ago)
- Last Synced: 2025-03-21T06:34:42.314Z (about 2 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, [email protected]
## License
BSImageView is available under the MIT license. See the LICENSE file for more info.