【SwiftUI】プレビューで複数の端末を表示する方法

 

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
            .previewDevice(PreviewDevice(rawValue: "iPhone 13 Pro"))
        ContentView()
            .previewDevice(PreviewDevice(rawValue: "iPod touch (7th generation)"))
    }
}