Add custom encoding and decoding logic for SwiftUI Color that is not Codable by default to be able to save it to disk or remote database.
Explore how to insert images, formatted data, attributed strings etc. inside SwiftUI Text views by leveraging the power of string interpolation in LocalizedStringKey.
Present multiple sheets at the same time one on top of the other like, for example, in Apple Calendar app when adding a new calendar.
Set a keypath to your model properties as FocusState value to avoid declaring custom enums to programmatically set focus and respond to focus changes.
Learn how to rapidly evaluate a polynomial function of variable size on the GPU without needing to write C++ Metal shaders.
Make use of the focused scene value API to pass data from the focused scene to the commands section of the app.
Change the style of navigation view in document based apps, by hiding the default view and adding our own.
Make an editable list of items in SwiftUI that automatically adds an empty text field for users to easily add new entries.
Integrate with UndoManager in SwiftUI by building a reusable UndoProvider view that can be used with any binding.
Add RawRepresentable conformance to a custom type that represents a setting or a view state in SwiftUI to be able to save it in AppStorage or SceneStorage.
Remove the default TextEditor background on iOS and add a placeholder that is not currently supported in TextEditor out of the box.
Let users preview various file formats such as Images, Live Photos, PDFs etc. in your SwiftUI app using QuickLook framework.
Explore how to add support for local network privacy if, for example, your app uses URLSession to access local servers.
Programmatically scroll SwiftUI ScrollView to a newly added item by combining ScrollViewReader and onChange() view modifier.
Implement state restoration in an example tab-based app that stores records of different types of trips.
In this article we will look into how to create a custom hover effect in SwiftUI and how to abstract this logic into a reusable view modifier.
View and manage files created by your app on the simulator, browse the Documents folder or Core Data SQLite Database.
Programmatically scroll SwiftUI List to a particular item, using the fact that its internal implementation is based on UITableView.
Add keyboard shortcuts to a SwiftUI iOS/iPadOS app to improve user experience when using your app with an attached hardware keyboard.
If you need to release an app built with an older version of Xcode, but want to test the app on the beta iOS simulators, you can follow the steps described in this article to transfer your build to the beta simulator.
Define and use custom environment key-value pairs in SwiftUI to pass values to the hierarchy of child views.
Make a scrollable view in SwiftUI scroll the active text field into visible range when the keyboard appears on screen in iOS 13.
In this article we would like to share what we learned about buttons in SwiftUI List rows when developing our apps.