Posts covering APIs introduced at WWDC 2022
Let users rename items from the navigation title in the toolbar using the new navigationTitle() modifier that takes a binding.
Set a custom background for TextEditor in SwiftUI by using a combination of scrollContentBackground() and background() view modifiers.
We can use the new Duration type from Foundation to represent an elapsed time value and format it using the new TimeFormatStyle.
We can customize how the user navigates through focusable views in our macOS apps with the help of the new focusSection() modifier.
Build a bar chart using data with values of type Measurement<UnitDuration> that doesn't conform to Plottable by default.
Let users configure the visible items in the center area of the toolbar on iPadOS 16 to suit their personal workflows.
Learn how to use the new openWindow action in SwiftUI to programmatically present new windows in macOS 13.
Make use of the new clock APIs in Swift 5.7 to delay an async task by a certain duration without calling the old method that accepts nanoseconds.
Take advantage of the new URL APIs in iOS 16, which let us obtain paths to system directories more easily without the need to use FileManager methods.
Learn how to change the default position of y-axis in Swift Charts by using chartYAxis() modifier.
Visualise data distributions by building a histogram and a 2D density plot with the new Swift Charts framework.
The default alignment of SwiftUI List row separators has changed in iOS 16. We also have some new APIs to customize separator insets.
Starting from iOS 16 and macOS 13 we have a SwiftUI API to request App Store reviews. We can read requestReview property from the environment and call it as a function at the appropriate time.
In Swift 5.7 that comes with Xcode 14 we can check if two values of type Any are equal, because we can cast values to any Equatable and use any Equatable as a parameter type.
Tap gesture in SwiftUI now provides the tap location and we can request it in local or global coordinate space.
Starting from iOS 16 and macOS 13 SwiftUI List view can automatically generate move and delete operations without the need of onDelete() and onMove() closures.
With enhanced text modifiers in iOS 16 and macOS 13, it's easy to animate changes to text styles such as font size and weight.
Draw a custom SwiftUI view to replace the symbols in a scatter plot in Swift Charts.
Find and replace feature is automatically supported by SwiftUI TextEditor, but we also have some APIs to customize its behavior, such as disable replace or present the find UI programmatically.
New ViewThatFits API introduced at WWDC 2022 lets us create more flexible layouts in constrained space. It can even help us detect if text is truncated and adapt our views accordingly.
Build a custom ridge chart with the new Swift Charts framework to show the distribution of a numeric variable for several groups.
In this article we'll go over all the API additions in iOS 16 to present and customize resizable sheets in SwiftUI. We'll also look at API limitations comparing to UISheetPresentationController in UIKit.
Use the new NavigationSplitView API with a column visibility parameter to programmatically control the visibility of the sidebar in multicolumn navigation in SwiftUI.
Explore the capabilities of the new Swift Charts framework introduced at WWDC 2022 while making a stream graph with custom colour gradient and text labels.
Present a half-sheet in SwiftUI by specifying supported detents with the new presentationDetents() modifier in iOS 16.
Let's try out the new SwiftUI navigation APIs introduced in beta 1 for iOS 16 and macOS 13: NavigationStack, NavigationSplitView and ways to set up programmatic navigation.
Set custom background for a navigation bar in iOS 16 using new SwiftUI toolbarBackground() modifier.