You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ To run the example project, clone the repo, and run `pod install` from the Examp
42
42
## Installation
43
43
44
44
Ciao is available through [CocoaPods](https://cocoapods.org). To install
45
-
it, simply add the following line to your Podfile:
45
+
it, simply add the following line to your Podfile and run `pod install`:
46
46
47
47
```ruby
48
48
pod 'CiaoTransitions'
@@ -56,11 +56,11 @@ import CiaoTransitions
56
56
57
57
## Usage
58
58
59
-
In the example you will see some custom transitions that can be used in your project. Once you've installed this pod, follow next steps. It's really simple:
59
+
In the example you will see some custom transitions that can be used in your project. Once you've installed, follow next steps. It's really simple:
60
60
61
61
### 1. Subclass your presented view controller
62
62
63
-
Subclass your presented view controller with `CiaoBaseViewController`. This will add `CiaoTransition` to your class.
63
+
Subclass your presented view controller with `CiaoBaseViewController`. This will add `CiaoTransition`object to your class.
@@ -78,7 +78,7 @@ class DetailViewController: CiaoBaseViewController {
78
78
79
79
### 2. Instace CiaoTransition with your values
80
80
81
-
Before presenting your view controller, you need to create an instance of `CiaoTransition`. Use depending on Push or Modal transitions:
81
+
Before presenting your view controller, you need to create an instance of `CiaoTransition` and add it to your presented view controller. Use custom init depending on Push or Modal transitions:
82
82
83
83
```swift
84
84
// Push transitions
@@ -138,15 +138,15 @@ var dragLateralEnabled: Bool = false
138
138
var dragDownEnabled: Bool=true
139
139
```
140
140
141
-
And how can I add it? Simple:
141
+
Then, you can pass these configuration params through CiaoTransition instance:
142
142
143
143
```swift
144
144
let params = CiaoTransition.Params()
145
145
let ciaoTransition =CiaoTransition(pushTransitionType: CiaoTransitionType.Push.pushLateral, params: params)
146
146
```
147
147
148
148
### Scale Transition Params
149
-
Scale transition params is required to make scale push transitions. For this, Ciao need some information about view you are going to scale. First create an instance of `CiaoTransition.ScaleParams` and add your custom params.
149
+
Scale transition params is required to make scale push transitions. For this, Ciao need some information about view you are going to scale. First create an instance of `CiaoTransition.ScaleParams` and setup your custom params.
150
150
151
151
```swift
152
152
/// Source image view is going to be scaled from your initial view controller
0 commit comments