SwiftUI Weekly - Issue #72
The curated collection of links about SwiftUI. Delivered every Monday.
What's new in Xcode 13 beta 5
Links management, ContentShapeKinds, and more!
How to create a property wrapper in Swift
Property wrapper is a Swift language feature. The main goal here is wrapping properties with a logic that we extract into a separate type to reuse it across the codebase. This week, we will learn how to create a property wrapper to read data in Keychain and be a good citizen in the SwiftUI world by reacting to data changes.
How to layer multiple windows in SwiftUI
A complete guide on managing multiple windows in SwiftUI.
Using a Scrollable Text View in a Mac SwiftUI App
In the article Using Text Views in a SwiftUI App I showed how to use a UIKit text view in a SwiftUI app. But if you use the code from that article in a Mac app,
Did you know that there are secret SwiftUI functions that were hidden just out of sight all this time?
Configuring SwiftUI Fetch Requests
In iOS 15, it's easier to dynamically configure a Core Data fetch request for use with SwiftUI.
A result builder implementation that allows defining shape building closures and variables.
Context Menu - Power User Shortcuts
In today's video I show you how and when to use Context Menus in SwiftUI. Context Menus should never bury any main functionality but are a great way to provide shortcuts for power users (as one example). This video uses the app we create in my latest course, Dub Dub Grub as an example project.
SwiftUI Preview Tips & Tricks
In today's video I show you some basic tips and tricks to help you utilize SwiftUI Previews. Keyboard shortcuts, Accessibility Inspector, multiple previews with various attributes for testing and pinning different preview so you can work on multiple screens at once.