liveview

How do you create an iOS liveView in Xcode 8/Swift 3 [duplicate]

跟風遠走 提交于 2019-12-13 13:12:33
问题 This question already has answers here : iOS Playground doesn't show UI preview (8 answers) Closed 2 years ago . I can't figure out how to create and display a live view in an Xcode 8/Swift 3 Playground. If Apple has comprehensive documentation on playgrounds and live views, I can't find it, and all my searching online reveals either tutorials on Xcode 7 or the new iPad playgrounds. The few examples I have found set up Mac OS views, which is not what I want (I work mostly in iOS, so the code