Instance Method

previewDisplayName(_:)

Provides a user visible name shown in the editor.

Declaration

func previewDisplayName(_ value: String?) -> some View

Discussion

Default is nil.

See Also

Configuring View Previews

func previewDevice(PreviewDevice?) -> View

Overrides the device for a preview.

Beta
func previewLayout(PreviewLayout) -> View

Overrides the size of the container for the preview.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software