benzhemin / Hero

Supercharged transition engine for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Carthage compatible Version License Xcode 8.0+ iOS 8.0+ Swift 3.0+

Introduction

Hero is a library for building iOS view controller transitions. It provides a layer on top of the UIKit's cumbersome transition APIs. Making custom transitions an easy task for developers.

Features

With Hero, you can easily mix & match these effects to build your own custom transition.

At its core, Hero is similar to Keynote's Magic Move. It checks the heroID property on all source and destinations views. Every matched view pairs are then automatically transitioned from it's old state to it's new state.

Hero can also construct animations for unmatched views. It is easy to define these animations via the heroModifiers property. Hero will run these animations alongside the Magic Move animations. All of these can be interactive, too.

Video Demos

The following videos give you a general idea of what you can do with Hero

  1. Video overview of the example project.
  2. Video overview of the built-in debugger that display timeline, arc curve, and 3d informations.
  3. Video overview of the usage with Injection App to provide dynamic modifications in realtime. Changing HeroID or HeroModifiers without recompiling!

Installation & Usage Guide

Hero is available on Carthage & Cocoapods. See the usage guide for instructions.

NOTE: Hero won't work on iPhone 7 Simulators due to a bug by Apple. Try using other simulators or a real device when working with Hero.

Simple Usage Examples

You can do these in the storyboard too!

Contribute

We welcome any contributions. Please read the Contribution Guide.

License

Hero is available under the MIT license. See the LICENSE file for more info.

About

Supercharged transition engine for iOS.

License:MIT License


Languages

Language:Swift 99.0%Language:Ruby 1.0%