Skip to content
项目

关于

用于构建可组合状态机以及由这些状态机驱动的 UI 的 Swift 和 Kotlin 库。

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
-1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Overview

GitHub license

Workflow is a unidirectional data flow (UDF) library that provides navigation and state management for Kotlin and Swift applications. It can be compared to (and helped inspire!) TCA, Circuit and Molecule.

Workflow's main difference from its peers is its opionated take on navigation: that navigation is just another form of presenter state to be managed, not a separate special concern.

Workflow…

  • Uses immutable data within each Workflow. Data flows in a single direction from source to UI, and events in a single direction from the UI to the business logic.
  • Supports writing business logic and complex UI navigation logic as state machines, thereby enabling confident reasoning about state and validation of correctness.
  • Provides excellent support for recursion -- workflows of workflows of workflows -- as its main idiom for navigation.
  • Is optimized for composability and scalability of features and screens.
  • Includes UI frameworks that bind Rendering data classes for “views” (including event callbacks) to Mobile UI frameworks for Android and iOS.
  • Provides a testing framework that facilitates simple-to-write unit tests for all application business logic and helps ensure correctness.

Using Workflows in your project

Swift

See the square/workflow-swift repository.

Kotlin

See the square/workflow-kotlin repository.

Resources

Support & Contact

Workflow discussion happens in the Workflow Community slack. Use this open invitation.

Workflow maintainers also hang out in the #squarelibraries channel on the Kotlin Slack.

Releasing and Deploying

See RELEASING.md.

License

Copyright 2019 Square Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

wolfcrow

探索相关项目

加载中…