Redux 是对 redux 的 Swift 实现之一。
关于该框架的详细介绍可以在官方 Redux 仓库中找到:redux。
从我们的项目模板开始
curl https://raw.githubusercontent.com/oursky/Redux-Project-Template/master/download | bash -s YOUR_PROJECT_NAME
运行以下命令:
# if your XCode path is '/Applications/Xcode.app'
curl https://raw.githubusercontent.com/oursky/Redux-Project-Template/file-templates/install-template.sh | bash -s
# else
curl https://raw.githubusercontent.com/oursky/Redux-Project-Template/file-templates/install-template.sh | bash -s YOUR_XCODE_PATH
然后,您可以在 Xcode 中打开,转到 文件 -> 新建 -> 文件...
,您应该在 Redux
下找到文件模板。
查看 https://github.com/oursky/Redux-Project-Template/tree/file-templates
git clone [email protected]:oursky/Redux.git
cd Redux
pod install --project-directory=Example
open Example/Redux.xcworkspace
然后您可以在 XCode 中运行 Redux-Example
灵感来源于
Redux 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。