Skip to content

Commit daae5be

Browse files
committed
Update docs/UsageGuide.md
Resolve conflicts
1 parent 2478d8e commit daae5be

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/UsageGuide.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Usage
22

3-
### Storyboard
3+
## Storyboard
44

55
1. In the Identity Inspector, for every pair of source/destination views, give each one the same `HeroID` attribute.
6-
3. For any other views that you would like to animate, specify animation effects in the `Hero Modifier String` attribute.
7-
4. Also in the Identity Inspector, enable Hero Transition on your destination view controller.
6+
2. For any other views that you would like to animate, specify animation effects in the `Hero Modifier String` attribute.
7+
3. Also in the Identity Inspector, enable Hero Transition on your destination view controller.
88

9-
### In Code
9+
## In Code
1010

1111
1. Before doing a transition, set the desired `heroID` and `heroModifiers` to both your source and destination views.
1212
2. Enable Hero for the destination view controller
@@ -20,12 +20,13 @@
2020
Hero also supports transitions within a navigation controller or a tab bar controller—just set the 'hero.isEnabled' attribute to true on the UINavigationController/UITabBarController instance.
2121

2222
## Attributes
23+
2324
There are two important attributes to understand: `heroID` and `heroModifiers`. These are implemented as extensions (using associated objects) for `UIView`. Therefore, after the Hero library is imported, every `UIView` will have these two attributes.
2425

2526
| Attribute Name | Description |
2627
| --- | --- |
2728
| `heroID` | Identifier for the view. Hero will automatically transition between views with the same `heroID` |
28-
| `her.modifiers` | Specifies the extra animations performed alongside the main transition. |
29+
| `hero.modifiers` | Specifies the extra animations performed alongside the main transition. |
2930

3031
## HeroID
3132

@@ -40,6 +41,7 @@ Use `hero.modifiers` to specify animations alongside the main transition. Checko
4041
```swift
4142
view.hero.modifiers = [.fade, .translate(x:0, y:-250), .rotate(x:-1.6), .scale(1.5)]
4243
```
44+
4345
<!--- TODO: Fix broken image below --->
4446
<img src="https://github.com/lkzhao/Hero/blob/master/Resources/heroTransition.gif?raw=true" width="300">
4547

0 commit comments

Comments
 (0)