Preview(_:traits:_:body:) | Apple Developer Documentation

Creates a preview of a SwiftUI view using the specified traits.