wwdc-notes

SwiftUI

What’s new

➡️ SwiftUI Change Log, via Michael Tsai

I made a thing: SwiftUI Index/Changelog - an alphabetical index of all SwiftUI views, modifiers, property types etc. + changelog for each version, auto-generated from official documentation.

➡️ #swiftui-lounge #wwdc22

➡️ SwiftUI Changes at WWDC 2022

➡️ SwiftUI in 2022

➡️ SwiftUI for Mac 2022

➡️ SwiftUI 4 is killing my open-source projects

APIs

➡️ FormatStyles in iOS 16 and macOS 13

➡️ Swift Charts

➡️ SwiftUI Renderers and Their Tricks

WWDC ’22 brought us a couple of new ways to capture SwiftUI views. There is ImageRenderer and ChartRenderer. In general we use the first one to generate images of our views, and ChartRenderer specifically for Chart views. In this article we will explore both renderers, its tricks, quirks and limitations.

➡️ Understanding SwiftUI’s ViewThatFits container

Starting with iOS 16, SwiftUI provides a new layout container ViewThatFits which helps us build adaptive layouts.

➡️ Multiline TextField in SwiftUI

Here it is! How many times did I try to find an answer on Stackoverflow, uhm? No more custom multiline text fields using TextEditor. Starting with iOS 16 we can achieve it using TextField just by adding a new parameter axis.

➡️ SwiftUI View That Fits

The SwiftUI ViewThatFits view, introduced in iOS 16, makes it a lot simpler to build layouts that adapt to make best use of the available space.

➡️ SwiftUI Scrollable View Backgrounds

A quick tip on changing the background of SwiftUI scrollable views like lists and forms. […] The implementation of list no longer uses UITableView. Use the .scrollContentBackground modifier instead.