init(_:title:subtitle:image:)
Creates an item with the specified value and visual attributes.
Declaration
init(_ value: Value, title: LocalizedStringResource, subtitle: LocalizedStringResource? = nil, image: DisplayRepresentation.Image? = nil)Parameters
- value:
The value the item represents.
- title:
The item’s title.
- subtitle:
The item’s subtitle.
- image:
An image to display alongside the item’s title.