CustomMappable
public protocol CustomMappable
Implement this protocol with your View
to define the elements to which a transformation of this view is applied.
-
Use the
customMap(_:)
method to e.g. give access to multiple subviews which this view represents. This method is used to construct the view tree during runtime.Declaration
Swift
func customMap<T>(_ transform: (TypeErasedView) -> T) -> [T]