Skip to content

Commit e36a652

Browse files
author
Alberto Aznar
committed
Updated readme
1 parent 1dcb82c commit e36a652

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To run the example project, clone the repo, and run `pod install` from the Examp
4242
## Installation
4343

4444
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`:
4646

4747
```ruby
4848
pod 'CiaoTransitions'
@@ -56,11 +56,11 @@ import CiaoTransitions
5656

5757
## Usage
5858

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:
6060

6161
### 1. Subclass your presented view controller
6262

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.
6464

6565
```swift
6666
class DetailViewController: CiaoBaseViewController {
@@ -78,7 +78,7 @@ class DetailViewController: CiaoBaseViewController {
7878
7979
### 2. Instace CiaoTransition with your values
8080

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:
8282

8383
```swift
8484
// Push transitions
@@ -138,15 +138,15 @@ var dragLateralEnabled: Bool = false
138138
var dragDownEnabled: Bool = true
139139
```
140140

141-
And how can I add it? Simple:
141+
Then, you can pass these configuration params through CiaoTransition instance:
142142

143143
```swift
144144
let params = CiaoTransition.Params()
145145
let ciaoTransition = CiaoTransition(pushTransitionType: CiaoTransitionType.Push.pushLateral, params: params)
146146
```
147147

148148
### 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.
150150

151151
```swift
152152
/// Source image view is going to be scaled from your initial view controller

0 commit comments

Comments
 (0)