Overrides the device for a preview.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- Xcode 11.0+
If you set the preview device to
nil, as it is by default, Xcode automatically chooses an appropriate device based on your target.
The following values are supported:
Configuring View Previews