Member-only story

Display the UI in Swift’s Playgrounds

IT WORKS!

Steven Curtis
3 min readApr 28, 2020
Photo by Sharon McCutcheon on Unsplash

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:

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.

--

--

No responses yet