View

public protocol View : _View, Decodable, Encodable

Undocumented

  • Undocumented

    Declaration

    Swift

    associatedtype Body : View
  • Undocumented

    Declaration

    Swift

    var body: Body { get }
  • erasedCodableBody Extension method

    Undocumented

    Declaration

    Swift

    public var erasedCodableBody: _CodableView? { get }
  • eraseToAnyView() Extension method

    Undocumented

    Declaration

    Swift

    public func eraseToAnyView() -> AnyView
  • apply(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func apply<M>(_ modifier: M) -> _View where M : ViewModifier
  • apply(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func apply(_ modifier: AnyViewModifying) -> _View

View Extensions

  • accentColor(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func accentColor(_ color: Color) -> some View
  • animation(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func animation(_ animation: Animation?) -> some View
  • aspectRatio(_:contentMode:) Extension method

    Undocumented

    Declaration

    Swift

    public func aspectRatio(_ ratio: CGSize, contentMode: ContentMode) -> some View
  • aspectRatio(_:contentMode:) Extension method

    Undocumented

    Declaration

    Swift

    public func aspectRatio(_ ratio: CGFloat?, contentMode: ContentMode) -> some View
  • scaledToFit() Extension method

    Undocumented

    Declaration

    Swift

    public func scaledToFit() -> some View
  • scaledToFill() Extension method

    Undocumented

    Declaration

    Swift

    public func scaledToFill() -> some View
  • blur(radius:opaque:) Extension method

    Undocumented

    Declaration

    Swift

    public func blur(radius: CGFloat, opaque: Bool? = nil) -> some View
  • clipped(antialiased:) Extension method

    Undocumented

    Declaration

    Swift

    public func clipped(antialiased: Bool? = nil) -> some View
  • cornerRadius(_:antialiased:) Extension method

    Undocumented

    Declaration

    Swift

    public func cornerRadius(_ value: CGFloat, antialiased: Bool? = nil) -> some View
  • Undocumented

    Declaration

    Swift

    public func drawingGroup(opaque: Bool? = nil, colorMode: ColorRenderingMode? = nil) -> some View
  • Undocumented

    Declaration

    Swift

    public func frame(minWidth: CGFloat? = nil,
                      idealWidth: CGFloat? = nil,
                      maxWidth: CGFloat? = nil,
                      minHeight: CGFloat? = nil,
                      idealHeight: CGFloat? = nil,
                      maxHeight: CGFloat? = nil,
                      alignment: Alignment? = nil) -> some View
  • font(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func font(_ font: Font?) -> some View
  • foregroundColor(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func foregroundColor(_ color: Color) -> some View
  • Undocumented

    Declaration

    Swift

    public func frame(width: CGFloat? = nil, height: CGFloat? = nil, alignment: Alignment? = nil) -> some View
  • layoutPriority(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func layoutPriority(_ value: Double) -> some View
  • onAppear(perform:) Extension method

    Undocumented

    Declaration

    Swift

    public func onAppear(perform action: Action) -> some View
  • onDisappear(perform:) Extension method

    Undocumented

    Declaration

    Swift

    public func onDisappear(perform action: Action) -> some View
  • mask(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func mask<M>(_ mask: M) -> some View where M : View
  • Undocumented

    Declaration

    Swift

    public func navigationBarTitle(_ title: Value<String>,
                                   displayMode: NavigationBarTitleDisplayMode? = nil) -> some View
  • opacity(_:antialiased:) Extension method

    Undocumented

    Declaration

    Swift

    public func opacity(_ value: Double, antialiased: Bool? = nil) -> some View
  • overlay(_:alignment:) Extension method

    Undocumented

    Declaration

    Swift

    public func overlay<O>(_ overlay: O, alignment: Alignment? = nil) -> some View where O : View
  • Undocumented

    Declaration

    Swift

    public func padding(top: CGFloat? = nil, leading: CGFloat? = nil,
                        bottom: CGFloat? = nil, trailing: CGFloat? = nil) -> some View
  • padding(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func padding(_ value: CGFloat) -> some View
  • shadow(color:radius:x:y:) Extension method

    Undocumented

    Declaration

    Swift

    public func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat? = nil, y: CGFloat? = nil) -> some View
  • sheet(isPresented:content:) Extension method

    Undocumented

    Declaration

    Swift

    public func sheet<Content>(isPresented: Binding<Bool>, content: Content) -> some View where Content : View
  • modified(using:) Extension method

    Undocumented

    Declaration

    Swift

    public func modified(using modifier: AnyViewModifying) -> some View

Available where Self: Codable

  • background(_:) Extension method

    Undocumented

    Declaration

    Swift

    public func background<V>(_ view: V) -> some View where V : View