TitleAndIconLabelStyle

A label style that shows both the title and icon of the label using a system-standard layout.

StructureiOS 14.5+macOS 11.3+tvOS 14.5+watchOS 7.4+TitleAndIconLabelStyle in SwiftUI

Declaration

React
type TitleAndIconLabelStyle = SwiftOpaque<'TitleAndIconLabelStyle'>;
Swift
nonisolated struct TitleAndIconLabelStyle

Overview

You can also use LabelStyle.titleAndIcon to construct this style.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Styles.