Simple transitions and view modifiers
TCA Transitions
? Description
This package adds simple transitions using The Composable Architecture from Point-Free. SwiftUI allows for expressive transitions and ways to navigate the user to a new screen. This package aims to make these transitions easier.
Installation
Install in Xcode as a package dependency.
- From the File menu, select Add Packages…
- Enter “https://github.com/Naturally-Inviting/swift-tca-transitions” into the package URL field.
Demo
This demo application can be accessed via TcaTransitions.xcworkspace
Examples
Circle Transition
import TCATransitions
ZStack {
// Content "underneath" the new transition
MyRootView()
// The content presented during the transition
MyNewPresentedView()
.circleTransition(
scopedStore,
style: Color.red.gradient
)
}
Circle Transition |
---|