Series · 7 parts

SwiftUI Programming

A step by step introduction to SwiftUI, written when the framework came out. Views, stacks, state, bindings and how SwiftUI talks to UIKit.

Start the series 2019–2020 · 40 min in total
SwiftUIJan 5, 2020

SwiftUI Programming: An Introduction

Why SwiftUI marks a break with UIKit and MVC: a declarative framework where the interface is derived from state. Notes that open a series of tutorials.

2 min read
SwiftUIJan 6, 2020

SwiftUI Programming: The View Object

What a View is in SwiftUI: a struct conforming to a protocol with a single body requirement, and how opaque types differ from plain protocols.

5 min read
SwiftUIJun 28, 2019

TextField and UIViewRepresentable

How to work around the TextField limits of iOS 13 beta 2 by wrapping UITextField and its delegate in a UIViewRepresentable, with focus moving between fields.

7 min read
↑ ↓ navigate↵ openesc close