SEARU.ORG
当前位置:SEARU.ORG > Linux 软件 > 正文

Swift单向数据流 ReSwift

ReSwift是一款终极版样实现Swift单向数据流架构

介绍

ReSwift可以帮助你把应用程序的组件分为三个重要点:

  • State: in a ReSwift app the entire app state is
    explicitly stored in a data structure. This helps avoid complicated
    state management code, enables better debugging and has many, many more
    benefits…

  • Views: in a ReSwift app your views update when your state changes. Your views become simple visualizations of the current app state.

  • State Changes: in a ReSwift app you can only
    perform state changes through actions. Actions are small pieces of data
    that describe a state change. By drastically limiting the way state can
    be mutated, your app becomes easier to understand and it gets easier to
    work with many collaborators.

安装

CocoaPods

use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'ReSwift'

Carthage

github "ReSwift/ReSwift"

软件截图

未经允许不得转载:SEARU.ORG » Swift单向数据流 ReSwift

赞 (0)
分享到:更多 ()

评论 0