Last updated 9 months ago
AnyView allows changing the type of view used in a given view hierarchy. Whenever the type of view used with an AnyView changes.
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.)