Member-only story
Display the UI in Swift’s Playgrounds
IT WORKS!
Look: I’ve always struggled with Playgrounds due to the idea that “you just type in it and everything is done”. Give me a clue, daddy!
Here is that clue, son.
Difficulty: Beginner | Easy | Normal | Challenging
Prerequisites:
- None, but you might benefit from being familiar with the basic use of Playgrounds
Terminology
Playgrounds: A development environment that can be used to create Swift code
The idea
This is going to be a simple App with two view controllers. The first will be displayed, and have a button that takes the user to the second view controller (present the view controller).
The second view controller has a button that enables the user to dismiss the current view controller.
All within Playgrounds.
The Setup
Playgrounds allows us to create a Live View to display rather wonderful information.