简单的过渡和视图修改器
TCA 过渡
📝 描述
此软件包使用来自无点的可组合架构添加了简单的过渡。SwiftUI 允许富有表现力的过渡和将用户导航到新屏幕的方法。该软件包旨在使这些过渡更容易。
安装
在 Xcode 中作为包依赖项安装。
- 从“文件”菜单中,选择“添加包...”
- 在包 URL 字段中输入“https://github.com/Naturally-Inviting/swift-tca-transitions”。
演示
此演示应用程序可通过以下方式访问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 |
---|