TabView

public struct TabView<Content> : View where Content : View

A view that switches between multiple child views using interactive user interface elements.

  • Initializes the TabView with the provided content and selection value specifying the active tab.

    Declaration

    Swift

    public init(selection: Int = 0, @ViewBuilder content: () -> Content)
  • Declaration

    Swift

    public var body: some View { get }