yalantis / starwars.ios Goto Github PK
View Code? Open in Web Editor NEWThis component implements transition animation to crumble view-controller into tiny pieces.
Home Page: https://yalantis.com
License: MIT License
This component implements transition animation to crumble view-controller into tiny pieces.
Home Page: https://yalantis.com
License: MIT License
Some improvement for stars animation on Intro screen, like flying through stars array:
func randomizeEmitterPosition() {
let sizeWidth = 1.0*self.bounds.size.height
let radius = 0 + CGFloat(arc4random()) % sizeWidth;
emitter.emitterSize = CGSizeMake(radius, radius)
particle.birthRate = 10 + sqrt(Float(radius))
}
Any update for xCode 8 and Swift 3?
I noticed that on the Android implementation of this lib, there is an API for triggering the animation on any view...
mTilesFrameLayout.startAnimation();
Is it possible to do the same on iOS for a given View Controller? Instead of just attaching it to the segue.
Burke
The more information you provide, the faster we can help you.
Please describe what you want to add to the component.
Please add images.
Please replace this with what you did.
Please replace this with what you expected to happen.
Please replace this with what happened instead.
pod env | pbcopy
and insert herecarthage version | pbcopy
and insert herePlease add a link to a project we can download that reproduces the bug.
After dismissing view, could not get back first view controller's View as screen returns black
i read the blog that accompanied this repo about how this animation was created. i saw you originally wrote opengl one it in objc. is there any chance you have that code still and are willing to share it? i love this transition but am not going to use any swift in my current project and plan on trying to rewrite this in objc so it would speed things up tremendously for me.
sorry if this isnt appropriate avenue to ask. didnt see a comment section on the blog:
Do you have plan to support Swift 4?
I try make the snapshots in dismiss animation have blurEffect and corner.
let snapshot = (fromViewSnapshot!.resizableSnapshotView(from: snapshotRegion, afterScreenUpdates: false, withCapInsets: UIEdgeInsets.zero))!
blurEffect: I just add UIVisualEffectView to fromView and then
let fromViewSnapshot = fromView?.snapshotView(afterScreenUpdates: true)
this work well. all snapshot blurEffect.
but make snapshot corner I fail.
first i just use this
snapshot.layer.cornerRadius = width / 2
snapshot.layer.masksToBounds = true
but this have performance problems.
I try to solve this by use UIGraphicsGetCurrentContext clip the snapshot. by use
first. clip snapshot to image like http://stackoverflow.com/questions/25444609/screenshot-in-swift-ios. then clip image. and add image to imageview. at last. add it to containerView
but it not work. I do not know where is wrong.
sorry about my poor English.
Any chance you could add the necessary decorations to expose this lib to Obj-C? That would allow us to create a plugin for this module for github.com/nativescript.
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.