ConnectableViewModifier

public protocol ConnectableViewModifier : Connectable, ViewModifier

A view modifier that connects to the application state.

  • Undocumented

    Declaration

    Swift

    associatedtype InnerBody : View
  • Undocumented

    Declaration

    Swift

    associatedtype Body = Connector<Self.InnerBody, Self.State, Self.Props>
  • Return the body of the view modifier using the provided props object.

    Declaration

    Swift

    func body(props: Props, content: Content) -> InnerBody

    Parameters

    props

    A mapping of the application to the props used by the view.

    content

    The content of the view modifier.

    Return Value

    The connected view.

  • body(content:) Extension method

    Declaration

    Swift

    public func body(content: Content) -> Connector<InnerBody, State, Props>