This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 端末の大きさ, 向き, 言語を網羅的に指定して列挙していく | |
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let vc = ViewController() | |
| PlaygroundPage.current.liveView = vc |
NewerOlder