AnyView
AnyView allows changing the type of view used in a given view hierarchy. Whenever the type of view used with an AnyView changes.
Constructors
Last updated
AnyView allows changing the type of view used in a given view hierarchy. Whenever the type of view used with an AnyView changes.
Last updated
Constructors | Description |
---|---|
AnyView<‘msg, ‘marker when ‘marker :> IView>(widget: WidgetBuilder<‘msg, ‘marker>)
Downcast to IView to allow to return different types of views in a single expression (e.g. if/else, match with pattern, etc.)