callumboddy / cbzsplashview Goto Github PK
View Code? Open in Web Editor NEWTwitter style Splash Screen View. Grows to reveal the Initial view behind
License: MIT License
Twitter style Splash Screen View. Grows to reveal the Initial view behind
License: MIT License
Either there's files missing when installed through CocoaPods or your example code is wrong?
As this doesn't seem to work:
CBZSplashView *splashView = [CBZSplashView splashViewWithIcon:icon backgroundColor:color];
The only time iconStartSize is used is in the initWithIconImage method, therefore any attempt to change it after initialization has no effect.
I want to load a UIViewController instead of an image when animation is done. How can I do that?
Hey!
I thought I'd start an issue with this new task I am tackling, so I can dump the ideas and issues I com across..
First thing's first, what is this about?
To make the component as not dissimilar as possible, the component needs to draw the splash view with a clipped shape in the middle. That shape would animate out by expanding until it essentially takes over the whole view. At that point, the view behind should be fully visible. So, there is no fading here.
Cocoapods seems to only include CBZSplashView
The startAnimation
method uses + (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay usingSpringWithDamping:(CGFloat)dampingRatio initialSpringVelocity:(CGFloat)velocity options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(7_0);
which is only available in iOS7 but the cocoapod specifies only ios6 is required.
After adding the new masking functionality, there is a new dependency: QuartzCore
. Need to update the readme to make sure users are aware of that.
Also, need to show the new way of using the masking functionality.
s.source = { :git => "https://github.com/callumboddy/CBZSplashView.git", :tag => '0.1.1'}
I believe you want the version to be '1.0.0'
Thanks for the great Pod. Just an FYI, in order to use your current examples, I have to set my pod to :head . The 1.0 seems to not support the splashViewWithBezierPath method.
__unused UIImage *icon = [UIImage imageNamed:@"circle"];
//UIBezierPath *bezier = [UIBezierPath twitterShape];
UIColor *color = kATOrangeColor;
self.splashView = [CBZSplashView splashViewWithIcon:icon backgroundColor:color];
self.splashView.iconColor = [UIColor purpleColor];
self.splashView.animationDuration = 1.1;
[self.view addSubview:self.splashView];
Not working!
As a suggestion, I spent an entire day playing around with a bunch of bezier paths, some complicated, some very simple, until it hit me, the direction of the winding would affect the result.
So, it might be worth mentioning, if you're not seeing any results using bezier paths, try using reversing
(Swift)/beziePathByReversingPath
(Objective C) and use the resulting path
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.