Contents

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.

See Also

Creating a preview