TabModal

public struct TabModal : View

A struct used to define the modal tab screen.

  • Creates a TabModal instance.

    Declaration

    Swift

    public init<Content, ModalContent>(
        @ViewBuilder modalTabBarItemContent: () -> Content,
        @ViewBuilder content: () -> ModalContent
    ) where Content: View, ModalContent: View

    Parameters

    modalTabBarItemContent

    a @ViewBuilder that contains the modal tab bar item.

    content

    a @ViewBuilder that contains the content of the tab bar modal screen.

  • The body of TabModal. It creates a view with the modal tab content.

    Declaration

    Swift

    public var body: some View { get }