TabItemContent

public struct TabItemContent : View

A struct used to define a tab item content. This correspond to the content of the tab bar item elements: image and text shown in the tab bar.

  • Creates a TabItemContent instance.

    Declaration

    Swift

    public init(systemImageName: String, text: String, font: Font)

    Parameters

    systemImageName

    the system image used as tab bar item icon.

    text

    the text used as label for the tab bar item.

  • Creates a TabItemContent instance.

    Declaration

    Swift

    public init(imageName: String, text: String, font: Font)

    Parameters

    imageName

    a generic image used as tab bar item icon.

    text

    the text used as label for the tab bar item.

  • The body of TabItemContent. It create a view with icon and label for a tab bar item.

    Declaration

    Swift

    public var body: some View { get }