SwiftUI Weekly - Issue #152
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Mastering charts in SwiftUI. Selection.
Swift Charts provides a lovely API allowing you to tune charts and add custom interactions within a few lines of code. The following framework iteration goes further and allows us to track chart selection in a single line of code. This week we will learn about new APIs allowing us to handle selection in Swift Charts.
Thread's iOS Interface in SwiftUI
In my previous snip, I used a cheeky Threads knockoff interface to demonstrate the subject matter. It occurred to me how crazy it is that I could even do this. SwiftUI has done away with so much work that used to be pervasive in interface programming, interface builder or not.
Push Notifications Options in SwiftUI
You want to know all the push notification options types in the iOS environment and how to use them with SwiftUI.
Videos
SwiftUI NavigationStack Hero Animation Effect
In this video, we'll see how to animate the Hero Effect in the Navigation Stack using SwiftUI. It's impossible with the default matched geometry effect, so I built a custom Matched geometry effect to achieve this.
SwiftUI Drag and Drop with Transferable Custom Object
Drag and drop in SwiftUI was revamped in iOS 16. It now uses the .draggable and .dropDestination modifiers, which require conformance to the new Transferable protocol in Swift. In this video, we create a kanban board to teach you how to use Drag and Drop. In the second half of the video, I show you how to conform your custom objects to Transferable so you can use them with Drag and Drop.