SwiftUI Weekly - Issue #206
The curated collection of links about SwiftUI. Delivered every Monday.
Adopting Swift 6 across the app codebase
Using Swift 6 mode with all the warnings and errors it generates can be cumbersome. This week, I’ll share some tips and guidance that I use in my codebase to keep Swift 6 mode enabled and maximize the benefits of code safety.
Customizing macOS window background in SwiftUI
Customizing the appearance of macOS windows can help create a unique and polished user experience. One of the key aspects we can modify is the window's background. In this post, we’ll explore how to customize the background of macOS windows in SwiftUI, adjust the toolbar appearance, and remove the window title. These simple changes can make our apps look more modern and clean.
Accessibility That Fits
How many times have you seen a perfectly laid out mockup that was then implemented in elegant code that immediately breaks when a slightly different text size or locale is imposed upon it? Such cruelty!
Handle plurals in SwiftUI Text views with inflection
The Foundation framework has a feature called automatic grammar agreement that reduces the number of localized strings we need to provide while making our code simpler. It ensures text follows grammatical rules like pluralization and gender. It works seamlessly with SwiftUI, allowing us to handle plurals directly in Text views without any extra manual logic.
SwiftUI Navigation using the Router Pattern
In this article, we will use the Router pattern to help us separate our navigation logic as much as possible from our views to improve our apps maintainability and scalability.
Getting started with UI Testing for SwiftUI
Learn how to create user interface tests with the XCTest framework.