I think I should write something about my experience of writing Daft Music for iOS after doing the macOS app.
I have a hard time seeing where Catalyst brings any value. The Core already inherits 80% of the code (including the same ViewModels for the same screens) with just an own UI layer on top of each platform.
Some are even completely shared with some minor platform switches within the SwiftUI views like in this example.
#macosdev #iosdev #swiftui
A small helper I’m using to work on animation and tweak transitions with SwiftUI previews. Hope you find it helpful.
It gives you the chance to mutate your view every time it ticks, so you can see the animation live and tweak it more precisely.
#swiftui #iosdev #macosdev
https://gist.github.com/obrhoff/bebbd051aa7be59d6c534bfa03a134fc
Had fun yesterday to work on this feature for the upcoming iOS version of Daft Music. You can handover playback from macOS to iOS or vice versa. Its not entirely done but you get the idea.
You can also pass over your current visible screen to the other device but I'm not sure if I keep both or just decide for one.
#iosdev #macosdev #applemusic #buildinpublic #liquidglass #indiedev
👨💻In this post, I revisit a parallel computing model I worked with twenty years ago and re-implement it in Swift. No async/await, no actors, just a task DAG, work-helping, and a fixed pool of real OS threads. The result matches Swift's structured concurrency on most workloads and beats it on some. Galaxy collisions and crowd simulations included.
SAPlugin v2.0 is now available.
SAPlugin is a macOS Authorization Plug-in implementation written in 100% Swift, and can be used for customizing the authorization process in macOS, including system login.
It may be a niche project, but I'm pleased with this release. It now uses Swift 6 and concurrency (hopefully correctly) and I managed to redesign it to create a true shim in a single Swift file, isolating all of the interfacing to the OS C functions.