What is Store?

Store eschews MVC in favour of a unidirectional data flow. When a user interacts with a view, the view propagates an action through a central dispatcher, to the various stores that hold the application’s data and business logic, which updates all of the views that are affected.

This works especially well with SwiftUI’s declarative programming style, which allows the store to send updates without specifying how to transition views between states.

Stores: Holds the state of your application. You can have multiple stores for multiple domains of your app.

Actions: You can only perform state changes through actions. Actions are small pieces of data (typically enums) 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.

Transaction: An excution of a given action.

Views: A simple function of your state. This works especially well with SwiftUI’s declarative programming style.

Overview

  • Pricing: Free
  • Resource Link: https://github.com/alexdrone/Store
  • Resource Maker: Alex Usbergo
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift