Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/callumboddy/CBZSplashView
Twitter style Splash Screen View. Grows to reveal the Initial view behind
https://github.com/callumboddy/CBZSplashView
Last synced: 5 days ago
JSON representation
Twitter style Splash Screen View. Grows to reveal the Initial view behind
- Host: GitHub
- URL: https://github.com/callumboddy/CBZSplashView
- Owner: callumboddy
- License: mit
- Created: 2014-07-22T14:16:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-01T14:26:38.000Z (almost 8 years ago)
- Last Synced: 2024-12-05T00:32:08.462Z (7 days ago)
- Language: Objective-C
- Homepage:
- Size: 1.82 MB
- Stars: 1,489
- Watchers: 40
- Forks: 120
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - CBZSplashView - Twitter style Splash Screen View. Grows to reveal the Initial view behind. (UI / Splash View)
- awesome-cocoa - CBZSplashView
- awesome-ios-star - CBZSplashView - Twitter style Splash Screen View. Grows to reveal the Initial view behind. (UI / Splash View)
README
# CBZSplashView
[![CI Status](http://img.shields.io/travis/Callum Boddy/CBZSplashView.svg?style=flat)](https://travis-ci.org/Callum Boddy/CBZSplashView)
[![Version](https://img.shields.io/cocoapods/v/CBZSplashView.svg?style=flat)](http://cocoadocs.org/docsets/CBZSplashView)
[![License](https://img.shields.io/cocoapods/l/CBZSplashView.svg?style=flat)](http://cocoadocs.org/docsets/CBZSplashView)
[![Platform](https://img.shields.io/cocoapods/p/CBZSplashView.svg?style=flat)](http://cocoadocs.org/docsets/CBZSplashView)Inspired by the Twitter Splash screen.
Create a splash view not dissimilar to the one Twitter use.
Just drop in your raster/vector logo and choose a background color and you are ready to go.
I have also added some customization options if you are that way inclined.
Twitter: @callumboddy
Easy as pie:
+ Using a rasterized image:
```objc
UIImage *icon = [UIImage imageNamed:kMyIcon];
UIColor *color = [UIColor colorWithHexString:kMyColor];
CBZSplashView *splashView = [CBZSplashView splashViewWithIcon:icon backgroundColor:color];
// customize duration, icon size, or icon color here;
[self.view addSubview:splashView];
[splashView startAnimation];
```+ Using a vector image:
```objc
UIBezierPath *icon = [UIBezierPath myIcon]; // Generate path from vector using something like paintCode
UIColor *color = [UIColor colorWithHexString:kMyColor];
CBZSplashView *splashView = [CBZSplashView splashViewWithBezierPath:icon backgroundColor:color];
// customize duration, icon size, or icon color here;
[self.view addSubview:splashView];
[splashView startAnimation];
```
or you can animate on completion if you want to..
```objective-c[self downloadLoadsOfAmazingContentWithCompletion:^(BOOL success, NSError *error) {
[splashView startAnimation];
}];
```## Installation
CBZSplashView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:pod 'CBZSplashView', '~> 1.0.0'
## Coming Soon
- creating new and unique transitions to select from
- adding support for a background image.
- adding support for colorWithPatternImage- ~~a vector based implementation, closer to the twitter implementation~~
- If you would like to request a new feature, feel free to raise as an issue.
## Updates
1.0.0
- feature: full support for bezier paths - which is awesome. Massive thanks to @Mazyod
- cleanliness
- bugfixes0.1.1:
- feature: added propery to manipulate the icon size, eg. splashView.iconStartSize = CGSizeMake(200, 200);
- feature: added propery to manipulate the icon color, eg. splashView.iconColor = [UIColor redColor];
- feature: added propery to manipulate the animation Duration, eg. splashView.animationDuration = 2; (in seconds)- change: animtion no longer fires automatically, you must call [splashView startAnimation];
0.1.0 - done on the train, very messy
## Author
Callum Boddy, [email protected]
## License
CBZSplashView is available under the MIT license. See the LICENSE file for more info.