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: docs/UsageGuide.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Usage
2
2
3
-
###Storyboard
3
+
## Storyboard
4
4
5
5
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.
8
8
9
-
###In Code
9
+
## In Code
10
10
11
11
1. Before doing a transition, set the desired `heroID` and `heroModifiers` to both your source and destination views.
12
12
2. Enable Hero for the destination view controller
@@ -20,12 +20,13 @@
20
20
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.
21
21
22
22
## Attributes
23
+
23
24
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.
24
25
25
26
| Attribute Name | Description |
26
27
| --- | --- |
27
28
|`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. |
29
30
30
31
## HeroID
31
32
@@ -40,6 +41,7 @@ Use `hero.modifiers` to specify animations alongside the main transition. Checko
0 commit comments