Protocols
The following protocols are available globally.
-
Declare your view controller to be suitable for ReRxSwift. This requires your view controller to add a
Connectionproperty. Please note that you do not need to explicitly specify what theassociatedtypes are in your case, the compiler will derive this from the parameters to theConnection(store:mapStateToProps:mapDispatchToProps)constructor.Example:
See moreclass MyViewController: UIViewController { let connection = Connection( store: store, mapStateToProps: mapStateToProps, mapDispatchToActions: mapDispatchToActions ) ...Declaration
Swift
public protocol Connectable
View on GitHub
Protocols Reference