Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Boldt authored Dec 31, 2016
1 parent 79fe3bd commit 7323dd3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/swift3-compatible-orange.svg?style=flat" alt="Swift 3 compatible" /></a>

Jelly provides custom view controller transitions with just a few lines of code.
No need to create your own PresentationController or Animator-Objects.
No need to create your own Presentation-Controller or Animator objects.
A Jelly-Animator will do the heavy lifting for you.

## 📱 Example

You can use Jelly to build your own Alert-Views or Slidein-Menus using ViewControllers designed by yourself.
You can use Jelly to build your own Alertviews or Slidein-Menus using ViewControllers designed by yourself.

![Jelly-Animators: Elegant Viewcontroller Animations in Swift](https://github.com/SebastianBoldt/Jelly/blob/master/Github/notification.gif?raw=true) ![Jelly-Animators: Elegant Viewcontroller Animations in Swift](https://github.com/SebastianBoldt/Jelly/blob/master/Github/slideover.gif?raw=true)

Expand Down Expand Up @@ -53,18 +53,16 @@ override func viewDidLoad() {
***DO NOT FORGET TO KEEP A STRONG 💪 REFERENCE***

Because the *transitioningDelegate* of a *UIViewController* is weak, you need to
hold a strong reference to the *JellyAnimator* inside the *UIViewController* you are presenting from
hold a strong reference to the *JellyAnimator* inside the *UIViewController* you are presenting from or the central object that maintains your presentations.

```swift
class CustomVC : UIViewController {
var jellyAnimator: JellyAnimator?
override func viewDidLoad() {
super.viewDidLoad()
// Setup your Animator here
var shiftInPresentation = JellyShiftInPresentation()
shiftInPresentation.direction = .left
let animator = JellyAnnimator(presentation:presentation)
// Assign it
self.jellyAnimator = animator
}
}
Expand All @@ -79,7 +77,7 @@ Jelly offers 3 types of Presentations for you:
* **JellyFadeInPresentation**

Not every property is available for each animation.
Check outh the interfaces of each class to learn more about it.
Check outh the interfaces of each class to learn more about them.

* **duration:** JellyConstants.Duration (default: normal)
* ultraSlow = 2.0
Expand Down Expand Up @@ -155,7 +153,7 @@ self.present(viewController, animated: true, completion: nil)

## ✅ Requirements

Your Project at least needs a deployment target that is >= iOS 9.0
Deployment target of your App is >= iOS 9.0

## 📲 Installation

Expand Down

0 comments on commit 7323dd3

Please sign in to comment.