Skip to content

Commit 1c51b02

Browse files
committed
Add myself as an author, show Carthage & CocoaPods badges.
1 parent b08d6bb commit 1c51b02

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Shift
2-
A library of custom iOS View Controller Animations and Interactions written in Swift.
2+
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
3+
[![CocoaPods compatible](https://img.shields.io/cocoapods/v/Shift.svg)](https://github.com/CocoaPods/CocoaPods)
34

4-
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/raizlabs/shift)
5+
A library of custom iOS View Controller Animations and Interactions written in Swift.
56

67
## Installation with Carthage
78

@@ -43,7 +44,7 @@ navigationController?.delegate = self
4344

4445
```swift
4546
var currentTransition: UIViewControllerAnimatedTransitioning?
46-
```
47+
```
4748

4849
- Extend your view controller to implement `UINavigationControllerDelegateTransitioning`. In your implementation, make sure to set the `currentTransition`:
4950

@@ -56,9 +57,9 @@ extension ViewController: UINavigationControllerDelegate {
5657
toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
5758

5859
if (operation == .Push && fromVC == self) {
59-
/*
60-
* set currentTransition here
61-
*/
60+
/*
61+
* set currentTransition here
62+
*/
6263
}
6364
else if (operation == .Pop && toVC == self) {
6465
}
@@ -77,7 +78,7 @@ extension ViewController: UINavigationControllerDelegate {
7778
<br/>
7879
</p>
7980

80-
`SplitTransition` exposes 5 key properties:
81+
`SplitTransition` exposes 5 key properties:
8182

8283
1. `screenshotScope` - (optional, defaults to `.View`) - determines whether top and bottom views are sourced from container view or entire window
8384
2. `splitLocation` (optional, defaults to `0.0`) - y coordinate where the top and bottom views part
@@ -134,7 +135,7 @@ presentViewController(destinationViewController, animated: true) { [weak self] (
134135
debugPrint("SplitTransitionAnimatedPresentDismissViewControllerViewController has been deallocated")
135136
return
136137
}
137-
138+
138139
// After presentation has finished, update transitionType on currentTransition
139140
vc.currentTransition?.transitionType = .Dismissal(presentedVC, vc)
140141
}
@@ -148,7 +149,7 @@ presentViewController(destinationViewController, animated: true) { [weak self] (
148149
<br/>
149150
</p>
150151

151-
`ZoomPushTransition` exposes 2 key properties:
152+
`ZoomPushTransition` exposes 2 key properties:
152153

153154
1. `transitionTime` - duration (in seconds) of the transition
154155
2. `scaleChangePct` - a transform which scales the destination view controller's view by `(sx, sy)' at the start of the transition

Shift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.screenshots = "https://raw.githubusercontent.com/Raizlabs/Shift/master/SplitTransition.gif"
1313
s.license = { :type => "MIT", :file => "LICENSE" }
1414

15-
s.author = { "Matt Buckley" => "[email protected]" }
15+
s.authors = { "Matt Buckley" => "matt.buckley@raizlabs.com", "John Watson" => "john.watson@raizlabs.com" }
1616
s.social_media_url = "http://twitter.com/Raizlabs"
1717

1818
s.platform = :ios, "9.0"

0 commit comments

Comments
 (0)