show()
Sets the content to be shown or hidden, either from a view builder or a binding.
show(
content: ViewBuilder | (() => ViewBuilder) | Binding<View | undefined>,
propagateInsertedEvents?: boolean,
): this;
Notes
- To render a bound view, make sure that the view is attached to another object, such as an activity (using ObservableObject.attach()).
- Events from bound views are not propagated by default (i.e. they’re presumed to be handled by the parent of the view itself), unless the
propagateInsertedEventsparameter is set to true.
Parameters
- content — A view builder for static content, or a binding to a dynamic view.
- propagateInsertedEvents — If true, events from dynamically inserted views are propagated by re-emitting them on the UIShowView instance.
Return value
The builder instance for chaining.
Related
class ShowBuilder static
A builder class for creatingUIShowViewinstances.
