Awesome
workflow
A unidirectional data flow library for Swift and Kotlin, emphasizing:
- Strong support for state-machine driven UI and navigation.
- Composition and scaling.
- Effortless separation of business and UI concerns.
This project is currently in development and the API subject to breaking changes without notice. Follow Square's engineering blog, The Corner, to see when this project becomes stable.
While the API is not yet stable, this code is in heavy production use in Android and iOS apps with millions of users.
Using Workflows in your project
Swift Package Manager
If you are developing your own package, be sure that Workflow is included in dependencies
in Package.swift
:
dependencies: [
.package(url: "git@github.com:square/workflow-swift.git", from: "1.0.0-rc.1")
]
In Xcode 11+, add Workflow directly as a dependency to your project with
File
> Swift Packages
> Add Package Dependency...
. Provide the git URL when prompted: git@github.com:square/workflow-swift.git
.
CocoaPods
If you use CocoaPods to manage your dependencies, simply add Workflow and WorkflowUI to your Podfile:
pod 'Workflow'
pod 'WorkflowUI'
Resources
Releasing and Deploying
See RELEASING.md.