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
+115Lines changed: 115 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,121 @@
9
9
10
10
To run the example project, clone the repo, and run `pod install` from the Example directory first.
11
11
12
+
UIImageViewSoftFrameAnimations is a powerfull framework to run frame animations without having to load all images in memory at the beginning of the animation.
13
+
You just have to provide the name of the sequense, the numbero of digits of the sequence and the starting number. With this, the frameworks does everything.
`digits` is 2 because there are only two digits in all the sequence frames.
38
+
`firstDigit` is 1
39
+
`ext` is jpg without the point
40
+
`loop` will determine if the animation will loop.
41
+
`loopCount` if you have specified loop = YES, loopCount will be the number of times that the animation will be reproduced. If loop is NO, this parameter will be ignored.
42
+
`framesPerSecond` is the speed of the animation
43
+
44
+
If you want to play an animation only one time, you can achieve this in two ways:
45
+
46
+
1 - loop = NO
47
+
2 - loop = YES and loopCount = 1
48
+
49
+
The two ways make differents things. The first one will reproduce the animation once and it will leave the last frame as final image. The second one will leave the first frame as the final image. It will give you the opportunity to achieve different animations only changing two parameters.
50
+
51
+
52
+
You can pause the animation at anytime:
53
+
54
+
```
55
+
-(void)pauseSoftFrameAnimation;
56
+
```
57
+
58
+
And resume it:
59
+
60
+
```
61
+
-(void)resumeSoftFrameAnimation;
62
+
```
63
+
64
+
65
+
- Idle animations
66
+
67
+
The framework gives the capacity to play idle animations:
You can configure an idle image and specify if you want to play it now or not.
79
+
80
+
When the idle image is setted and you play a softFrameAnimation with loop = NO, when the animation has ended, the idle animation will continue playing.
81
+
82
+
You can always play the idle manually:
83
+
84
+
```
85
+
-(void)playIdle;
86
+
```
87
+
88
+
And also remove the idle
89
+
90
+
```
91
+
-(void)removeIdle;
92
+
```
93
+
94
+
95
+
- Dynamic animations
96
+
97
+
As an additive, the framework give you the oportunity to create and add an animation into a view with one single line of code:
0 commit comments