Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soutaro/gradualimageview
UIImageView subclass which changes the image gradually
https://github.com/soutaro/gradualimageview
Last synced: 22 days ago
JSON representation
UIImageView subclass which changes the image gradually
- Host: GitHub
- URL: https://github.com/soutaro/gradualimageview
- Owner: soutaro
- License: mit
- Created: 2014-02-02T18:38:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-09T11:22:46.000Z (over 10 years ago)
- Last Synced: 2024-05-01T23:25:41.059Z (6 months ago)
- Language: Objective-C
- Size: 324 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# STMGradualImageView
[![Build Status](https://travis-ci.org/soutaro/GradualImageView.png?branch=master)](https://travis-ci.org/soutaro/GradualImageView)
STMGradualImageView is a UIImageView subclass which cross-fades the `image` property update.
![Animation](https://raw.github.com/soutaro/GradualImageView/master/example.gif)
## Usage
To run the example project; clone the repo, and run `pod install` from the Project directory first.
## Installation
STMGradualImageView is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:pod "STMGradualImageView"
## API
It replaces the `image` property from `UIImageView`, such that the update shows an animation which cross-fades the existing and new image. It also defines two methods, `setImage:animated` and `setImage:animatedInDuration:completion`, to give more controls.
STMGradualImageView *imageView = self.imageView;
imageView.image = anImage;
[imageView setImage:anImage animated:YES];
[imageView setImage:anImage animatedInDuration:0.3f completion:^(BOOL completed) {
....
}];## Author
Soutaro Matsumoto, [email protected]
## License
STMGradualImageView is available under the MIT license. See the LICENSE file for more info.