DefaultReduxApp

open class DefaultReduxApp<AppState> : DefaultApp, ReduxApp

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias ApplicationObservableProperty = ObservableProperty<AppState>
  • redux architecture of your project

    Declaration

    Swift

    public let redux: Redux<AppState>
  • observable app state property

    Declaration

    Swift

    open var state: ObservableProperty<AppState> { get }
  • Undocumented

    Declaration

    Swift

    public init(redux: Redux<AppState>)
  • Add a feature to your application

    Throws

    throws errors thrown by your feature observers

    Note

    A Feature is an empty protocol representing a distinct funtionality of your application. It will be provided to all FeatureObservers after addition to configure and connect it to your application and your remaining features. Have look at LogicFeature and LogicFeatureObserver for an example.

    Declaration

    Swift

    open override func add(feature: Feature) throws

    Parameters

    feature

    your feature

  • Add an observer to configure your application after adding a feature. Have look at LogicFeature and LogicFeatureObserver for an example.

    Declaration

    Swift

    open func add<T>(featureObserver: T) where AppState == T.AppState, T : StatefulFeatureObserver

    Parameters

    featureObserver

    an object observing feature addition