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
TabItemContentinstance.Declaration
Swift
public init(systemImageName: String, text: String, font: Font)Parameters
systemImageNamethe system image used as tab bar item icon.
textthe text used as label for the tab bar item.
-
Creates a
TabItemContentinstance.Declaration
Swift
public init(imageName: String, text: String, font: Font)Parameters
imageNamea generic image used as tab bar item icon.
textthe 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 }
View on GitHub
TabItemContent Structure Reference