Skip to content

Instantly share code, notes, and snippets.

// 端末の大きさ, 向き, 言語を網羅的に指定して列挙していく
display(device: .phone3_5inch, orientation: .portrait, language: .ja)
//display(device: .phone3_5inch, orientation: .portrait, language: .en)
//display(device: .phone4inch, orientation: .portrait, language: .ja)
//display(device: .phone4inch, orientation: .portrait, language: .en)
//display(device: .phone4_7inch, orientation: .portrait, language: .ja)
//display(device: .phone4_7inch, orientation: .portrait, language: .en)
//display(device: .phone5_5inch, orientation: .portrait, language: .ja)
//display(device: .phone5_5inch, orientation: .portrait, language: .en)
//display(device: .pad, orientation: .portrait, language: .ja)
func display(device: Device, orientation: Orientation, language: Language) {
let vc = R.storyboard.twitter.instantiateInitialViewController()!
let (parent, _) = playgroundControllers(device: device, orientation: .portrait, child: vc)
AppEnvironment.language = language
PlaygroundPage.current.liveView = parent
vc.load(statuses)
}
let vc = ViewController()
PlaygroundPage.current.liveView = vc