Posts tagged “swiftui”
2025
Adapt Unidirectional Flow Virtues to Your Plain SwiftUI App
To get started, you can require authentication for actions on buttons anywhere in your SwiftUI app produce a change up the scene, e.g. a log-in overlay or dialog, by injecting a closure into the environment to handle that.
SwiftUI DocumentGroups Are Terribly Limited
Document-based apps with SwiftUI are easy to write, but hard to customize apart from a couple visual tweaks. Say if you want to introduce in-app purchases.
Start of a Zettel: Modern UICollectionView
A Zettelkasten is a tool for learning. How do I learn a new piece of a familiar API at the very start?
Free SwiftUI University Course fro -Boston College Professor
If you need a free resource to make apps with SwiftUI in 2025, this one might be for you.
2024
Composition Over Inheritance in NSViews
I noticed that I’m writing some AppKit/UIKit view components in a composable way that reminds me of the opaque nature of SwiftUI.View-conforming types: hiding away the actual 1st party APIs, providing very little surface area.
PSA: SwiftUI Button Click-Through Fixed in macOS 15
SwiftUI non-bordered button styles don't support click-through up to macOS 15, but are fixed with the upcoming macOS release.
SwiftUI Kata: Recreating DebugInfo Viewer
Recreating the “DebugTest Info” app from the Mac OS X era from Technical Note TN2124 in SwiftUI with macOS Sonoma default styling.
Enable SwiftUI Button Click-Through for Inactive Windows on macOS
Buttons in macOS windows both activate a background window and perform the button action with one click. That so-called click-through behavior breaks with almost all SwiftUI button styles, including custom ones. Here is a fix.
SwiftUI Challenge: Can You Port this from Auto Layout to SwiftUI?
“Der Teilweise” proposed an interesting benchmark to see whether SwiftUI is production ready. Takes 10 minutes to do in Auto Layout. How long do you need for SwiftUI?
Chris Eidhof released an interactive, animated resource to understand SwiftUI.
2023
Not Quite 100% SwiftUI – Time Makes Perfect
Marin Todorov's “A 100% SwiftUI App” talk from this year's Swift Heroes went life (and it's really worth the half hour!)
SwiftUI.View Is Your ViewModel
Hypothesis: You already have a View Model when you work with SwiftUI, which is the View type itself.
Decoupling SwiftUI.View Configuration from Layout and Action Handling
Decoupling introduces independence, which means the de-coupled pieces can change independently. Even in the smallest view component, this can bring tangible real-world improvements.
SwiftUI.List with Menu with Plain Button Style Breaks Event Loop
Super weird edge case: the plain button style makes interacting with the menu all but freeze the app. (FB12285575)
How to Inspect SwiftUI.TextField.onSubmit and Figure Out You Can't Programmatically Use It
I looked for a way to trigger the onSubmit block in my own code, but none of my approaches bore fruit.
2022
SwiftUI Isn't Easy to Get Into: My Road From Headache Towards Mastery
2021
SwiftUI Requires Platform Knowledge On Top. Case Study: Fonts