App

public protocol App

Undocumented

  • 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

    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

    func add(featureObserver: FeatureObserver)

    Parameters

    featureObserver

    an object observing feature addition