Protocols
The following protocols are available globally.
-
Declare your view controller to be suitable for ReRxSwift. This requires your view controller to add a
Connection
property. Please note that you do not need to explicitly specify what theassociatedtype
s 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