@IBAction func switchAction(_ sender: UIButton) {
isFliped = !isFliped
let fromView = (isFliped) ? redCard : blueCard
let toView = (isFliped) ? blueCard : redCard
UIView.transition(from: fromView!, to: toView!, duration: 0.3, options: [(isFliped) ? .transitionFlipFromLeft : .transitionFlipFromRight,.showHideTransitionViews])
}
-
Notifications
You must be signed in to change notification settings - Fork 0
iCoder86/ViewTransition
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published