init(_:icon:)
Creates a preview representation.
Declaration
init(_ title: Text, icon: Icon)Parameters
- title:
A title to show in a preview.
- icon:
An icon to show in a preview.
Creates a preview representation.
init(_ title: Text, icon: Icon)A title to show in a preview.
An icon to show in a preview.