SwiftUI’s Property Wrappers

Can you see the fact it is observing?

Steven Curtis
4 min readDec 8, 2021
Photo by Brett Jordan on Unsplash

Property Wrappers are at the heart of SwiftUI. Want to get your noses wet with this great technology?

Read on to find out all the details!

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 13.1, and Swift 5.5.1

Prerequisites

* You will be expected to make a Single View SwiftUI Application in Swift.

Terminology

Property Wrappers: A property wrapper adds a layer of separation between code that manages how a property is stored and the code that defines a property

The motivation

Property Wrappers are used in my Swift Example, but even that article doesn’t cover the specific property wrappers used in SwiftUI (although the background reading there would really help the reader of this article, especially since it covers projectedValue which are indicated with a proceeding dollar sign `$`).

The video

--

--

No responses yet