Table of Contents
Preface
Chapter 1: Using the Basic SwiftUI Views and Controls
Technical requirements 18
How to lay out components 18
Getting ready 18
How to do it… 18
How it works… 22
Dealing with text 23
Getting ready 23
How to do it… 23
How it works… 26
There's more… 27
See also 27
Using images 27
Getting ready 27
How to do it… 27
How it works… 31
See also 34
Adding buttons and navigating with them 34
Getting ready 34
How to do it… 35
How it works… 38
See also 39
Beyond buttons – how to use advanced pickers 39
Getting ready 39
How to do it… 40
How it works… 42
How to apply groups of styles using ViewModifiers 44
Getting ready 44
How to do it… 44
How it works… 46
See also 46
Separating presentation from content ...
Get SwiftUI Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.