SwiftUI Weekly - Issue #114
The curated collection of links about SwiftUI. Delivered every Monday.
News
iOS 16: The MacStories Review
Customization is back, and Apple’s having fun again.
Reading
Customizing toolbars in SwiftUI
Toolbars API is one of my favorite APIs in SwiftUI. It allows you to define the toolbar and its items in a very declarative way behaving differently on separate platforms. The next generation of the SwiftUI framework brings us more ways of customizing toolbars. This week we will learn about new Toolbar APIs in SwiftUI.
The SwiftUI Layout Protocol - Part 1
Introduction One of the best SwiftUI additions this year has to be the Layout protocol. Not only we finally get our hands in the layout process, but it is also a great opportunity to better understand how layout works in SwiftUI.
The SwiftUI Layout Protocol - Part 2
And the Fun Begins! In the first part of this post we explored the basics of the Layout protocol in order to build a strong foundation of how Layout works. Now it’s time to dive into the less commented features and how to use them in our benefit.
Exploring SwiftUI Redraw Behavior with Instruments
Check with a simple app the optimization to don't SwiftUI redraw view than it is needed. Learn to pass data around safely in SwiftUI.
How to build a configurable widget with WidgetKit and SwiftUI
Learn how to allow users to customize their widgets for an iOS application. Learn how to add a custom intent definition that defines configurable properties, configure the widget by using IntentConfiguration and implement an Intents extension.
Toggle Collection & Mixed Stage Toggle
Starting SwiftUI 4, Toggle view is now capable of binding to multiple values.
How to make SwiftUI button with buttonStyle expand to full width
SwiftUI got many beautiful built-in button styles. One problem you might get is it isn't obvious how to control the size of it. Let's learn how to do it.
Video
Introduction to NavigationStack in iOS 16
In this video, I will introduce yu to the Navigation Stack. We will take a look at this new container view along with its components. Namely the new NavigationLink.