OnActionViewModifier

public struct OnActionViewModifier : ViewModifier

Undocumented

  • Declaration

    Swift

    public func body(content: Content) -> some View
  • A closure that can return a new action from a previous one. If no action is returned, the original action is not sent.

    Declaration

    Swift

    public typealias ActionModifier = (Action) -> Action?