All Projects β†’ Yalantis β†’ Starwars.ios

Yalantis / Starwars.ios

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

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to Starwars.ios

unity-ui-manager
🎫 A Simple UI Manager for rapid prototyping and ease of collaboration
Stars: ✭ 44 (-98.81%)
Mutual labels:  uikit, transition-animation
Appearancenavigationcontroller
Example with advanced configuration of the navigation controller's appearance
Stars: ✭ 91 (-97.53%)
Mutual labels:  uikit, yalantis
Ibanimatable
Design and prototype customized UI, interaction, navigation, transition and animation for App Store ready Apps in Interface Builder with IBAnimatable.
Stars: ✭ 8,585 (+132.97%)
Mutual labels:  uikit, transition-animation
Guillotinemenu
Our Guillotine Menu Transitioning Animation implemented in Swift reminds a bit of a notorious killing machine.
Stars: ✭ 2,908 (-21.09%)
Mutual labels:  transition-animation, yalantis
Learn Something Every Day
πŸ“ A compilation of everything that I learn; Computer Science, Software Development, Engineering, Math, and Coding in General. Read the rendered results here ->
Stars: ✭ 362 (-90.18%)
Mutual labels:  research
Animatify Ios
Animation, Effects & Transitions for iOS
Stars: ✭ 350 (-90.5%)
Mutual labels:  uikit
Fbg
Lightweight C 2D graphics API agnostic library with parallelism support
Stars: ✭ 349 (-90.53%)
Mutual labels:  opengl
Lumos
Cross-Platform C++ 2D/3D game engine
Stars: ✭ 343 (-90.69%)
Mutual labels:  opengl
Opentendo
An Open-Source HardWare (OSHW) recreation of the original 1985 front-loading NES Motherboard
Stars: ✭ 362 (-90.18%)
Mutual labels:  research
Overwatch Ui
A UI library of Overwatch, built with Vue.js
Stars: ✭ 365 (-90.09%)
Mutual labels:  uikit
Software
DeepValueNetwork is a peer-to-peer database network managed and hosted by its community. It contains a browser to render 2D/3D content and allow the creation of scripted applications built on top of the p2p database network and managed by its creators, without intermediary platform.
Stars: ✭ 357 (-90.31%)
Mutual labels:  opengl
Marzipanplatter
UIKit + macOS
Stars: ✭ 353 (-90.42%)
Mutual labels:  uikit
Shards Dashboard Vue
A free Vue admin dashboard template pack featuring a modern design system and lots of custom templates and components.
Stars: ✭ 363 (-90.15%)
Mutual labels:  uikit
Midivisualizer
A small MIDI visualizer tool, using OpenGL
Stars: ✭ 347 (-90.58%)
Mutual labels:  opengl
Sancho
Responsive and accessible React UI components built with Typescript
Stars: ✭ 365 (-90.09%)
Mutual labels:  uikit
Swiftterm
VT100/Xterm Terminal emulator in Swift
Stars: ✭ 350 (-90.5%)
Mutual labels:  uikit
Yarp
YARP - Yet Another Robot Platform
Stars: ✭ 358 (-90.28%)
Mutual labels:  research
C Cpp Notes
Notes about modern C++, C++11, C++14 and C++17, Boost Libraries, ABI, foreign function interface and reference cards.
Stars: ✭ 363 (-90.15%)
Mutual labels:  research
Canvas
Canvas is a Go drawing library based on OpenGL or using software rendering that is very similar to the HTML5 canvas API
Stars: ✭ 358 (-90.28%)
Mutual labels:  opengl
Sfml.net
Official binding of SFML for .Net languages
Stars: ✭ 354 (-90.39%)
Mutual labels:  opengl

StarWars Animation

Platform License

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

Yalantis

Preview

Check this project on dribbble.

Also, read how it was done in our blog

Requirements

  • iOS 8.0+
  • Xcode 8
  • Swift 4

Installing with CocoaPods

use_frameworks!
pod 'StarWars', '~> 2.0'

Usage

At first, import StarWars:

import StarWars

Then just implement class of UIViewControllerTransitioningDelegate that will return our animation form method animationControllerForDismissedController and assign it to transitioningDelegate of viewController that you want to dismiss.

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    let destination = segue.destinationViewController
    destination.transitioningDelegate = self
}

func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
    return StarWarsGLAnimator()
}

There are also two things you can customize in the Star Wars animation: duration and sprite sizes. Let’s see how you can do this:

let animator = StarWarsGLAnimator()
animator.duration = 2
animator.spriteWidth = 8

Have fun! :)

Let us know!

We’d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding the animation.

P.S. We’re going to publish more awesomeness wrapped in code and a tutorial on how to make UI for iOS (Android) better than better. Stay tuned!

Version history

  • 1.0 Swift 2.0
  • 2.0 Adds Swift 3.0 support
  • 3.0 Adds Swift 4.0 support
  • 4.0 Adds Swift 5.0 support

License

The MIT License (MIT)

Copyright Β© 2018 Yalantis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].