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.
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.
This demo application can be accessed via TcaTransitions.xcworkspace
import TCATransitions
ZStack {
// Content "underneath" the new transition
MyRootView()
// The content presented during the transition
MyNewPresentedView()
.circleTransition(
scopedStore,
style: Color.red.gradient
)
}
Circle Transition |
---|