ViewModifier

public protocol ViewModifier

A type that can create a modified version of a view.

  • Returns the current body of self. content is a proxy for the view that will have the modifier represented by Self applied to it.

    Declaration

    Swift

    func body(content: Content) -> View
  • Declaration

    Swift

    typealias Content = View