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.
WWDC ’22 brought us a couple of new ways to capture SwiftUI views. There is
ImageRenderer
andChartRenderer
. In general we use the first one to generate images of our views, andChartRenderer
specifically forChart
views. In this article we will explore both renderers, its tricks, quirks and limitations.
Starting with iOS 16, SwiftUI provides a new layout container
ViewThatFits
which helps us build adaptive layouts.
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.
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.
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.