Write Programmatic Constraints for Swift Projects

Great layouts!

Steven Curtis
4 min readNov 15, 2020

Photo by John Towner @heytowner

Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12.1, and Swift 5.3

Prerequisites:

Terminology

Constraints: A constraint on the layout of a view

Storyboard: A way to graphically layout the UI in Xcode

Removing the Storyboard

Although this isn’t really part of this tutorial (there is a full guide on this here but essentially you can select Main.storyboard in the project inspector:

--

--

No responses yet