Giter Site home page Giter Site logo

yalantis / starwars.ios Goto Github PK

View Code? Open in Web Editor NEW
3.8K 123.0 363.0 11.77 MB

This component implements transition animation to crumble view-controller into tiny pieces.

Home Page: https://yalantis.com

License: MIT License

Objective-C 1.21% Swift 96.96% Ruby 1.83%
ios swift star-wars animation transition-animation snapshots opengl uidynamics uikit research

starwars.ios's Issues

Stars animation on intro

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))
    }

Trigger Animation Programmatically For View

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

when i return StarWarsGLAnimator() it is giving me an error saying that,use of unresolved identifier.Is that a bug?

Report

The more information you provide, the faster we can help you.

โš ๏ธ Select what you want - a feature request or report a bug. Please remove the section you aren't interested in.

A feature request

What do you want to add?

Please describe what you want to add to the component.

How should it look like?

Please add images.

Report a bug

What did you do?

Please replace this with what you did.

What did you expect to happen?

Please replace this with what you expected to happen.

What happened instead?

Please replace this with what happened instead.

Your Environment

  • Version of the component: insert here
  • Swift version: insert here
  • iOS version: insert here
  • Device: insert here
  • Xcode version: insert here
  • If you use Cocoapods: run pod env | pbcopy and insert here
  • If you use Carthage: run carthage version | pbcopy and insert here

Project that demonstrates the bug

Please add a link to a project we can download that reproduces the bug.

View Issues

After dismissing view, could not get back first view controller's View as screen returns black

request for opengl objc animation code

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:

StarWarsAnimator: try to make snapshot blurEffect and corner

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.

Expose API To Obj-C

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.

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.