https://github.com/anod/iostransitionanimation
Animate views sequence for iOS
https://github.com/anod/iostransitionanimation
animation swift transition
Last synced: about 1 year ago
JSON representation
Animate views sequence for iOS
- Host: GitHub
- URL: https://github.com/anod/iostransitionanimation
- Owner: anod
- Created: 2017-12-28T17:37:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-30T07:08:17.000Z (over 8 years ago)
- Last Synced: 2025-04-28T13:12:32.907Z (about 1 year ago)
- Topics: animation, swift, transition
- Language: Swift
- Homepage:
- Size: 2.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ViewTransitionSequence
Wrapper on top of UIView transition to animate sequence of views
## Example of usage
```swift
import ViewTransitionSequence
self.sequence = ViewTransitionSequence(
container: self.container, // container view
frameView: AnimationFrameView(), // frame view factory
frames: [
FrameData(pic: UIImage(named: "face-1")!, title: "Best beard"),
FrameData(pic: UIImage(named: "face-2")!, title: "Weird glass")
])
self.sequence.start() { finished in
print("Sequence finished \(finished)")
}
```
## Result

## Options
```swift
public protocol TransitionSequneceOptions {
// Options to pass to UIView.transition, default [ .transitionCurlUp ]
var transition: UIViewAnimationOptions { get set }
// Default 1.0
var frameDuration: TimeInterval { get set }
}
```
## Installation
### Carthage
```Cartfile
github "anod/iOSTransitionAnimation" >= 0.1
```