Git Product home page Git Product logo

cbzsplashview's Introduction

CBZSplashView

[![CI Status](http://img.shields.io/travis/Callum Boddy/CBZSplashView.svg?style=flat)](https://travis-ci.org/Callum Boddy/CBZSplashView) Version License Platform

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:
  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:
  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..

  [self downloadLoadsOfAmazingContentWithCompletion:^(BOOL success, NSError *error) {
    [splashView startAnimation];
  }];

Installation

CBZSplashView is available through CocoaPods. 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
  • bugfixes

0.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.

cbzsplashview's People

Contributors

callumboddy avatar mazyod avatar

Watchers

James Cloos avatar Carlos Castellanos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.