https://github.com/sbatururimi/shatteringview
A view with a splitting into pieces animation
https://github.com/sbatururimi/shatteringview
animation coreanimation ios objective-c
Last synced: about 1 month ago
JSON representation
A view with a splitting into pieces animation
- Host: GitHub
- URL: https://github.com/sbatururimi/shatteringview
- Owner: sbatururimi
- License: mit
- Created: 2015-08-06T13:48:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-01T06:36:11.000Z (about 9 years ago)
- Last Synced: 2025-03-02T07:46:33.078Z (over 1 year ago)
- Topics: animation, coreanimation, ios, objective-c
- Language: Objective-C
- Size: 50.8 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ShatteringView
## Demo
[]
## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
To animate the view
```
__weak BSViewController *weakSelf = self;
[self.viewToSplash smashIt:YES onCompletion:^(BOOL finished) {
// avoid strong reference cycles
BSViewController *strongSelf = weakSelf;
if(strongSelf){
strongSelf.viewToSplash.hidden = NO;
}
}];
```
## Installation
ShatteringView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "ShatteringView"
```
## Author
Stas Batururimi, blueocean87@me.com
## License
ShatteringView is available under the MIT license. See the LICENSE file for more info.