Working previewDevice(_:) in Swift Playgrounds

SwiftPlaygroundsSimulator

Working previewDevice(_:) in Swift Playgrounds

How to use

Add .previewDevice(device name) to your preview

Available devices

iPhone SE (2nd generation)

iPhone 11

iPhone 11 Pro

iPhone 11 Pro Max

iPhone 12 mini

iPhone 12

iPhone 12 Pro

iPhone 12 Pro Max

iPhone 13 mini

iPhone 13

iPhone 13 Pro

iPhone 13 Pro Max

GitHub

View Github