iPhoneSimulator for Playground allows you to display the view controller with simulating the screen size of the iPhone devices.
You can also found the Swift Playground version from here.
- Simulate the iPhone screen sizes. (8 Plus / X / 8 / SE / 4S)
- Simulate the orientation. (Landscape / Portrait)
- Xcode 10.0+
- Swift 4.2+
pod 'iPhoneSimulator', :git => 'git@github.com:watanabetoshinori/iPhoneSimulator-for-Playground.git'
Start by importing the package in the Playground file you want to use it.
import iPhoneSimulator
let viewController = ViewController()
PlaygroundPage.current.liveView = iPhoneSimulator.liveView(with: viewController)
Tap the bottom of LiveView to display the toolbar.
- Tap Device image to change simulation device.
- Tap Orientaion to change view orientation.
Watanabe Toshinori – toshinori_watanabe@tiny.blue
This project is licensed under the MIT License. See the LICENSE file for details.