Sorting data by multiple criteria can be complex, but Swift's built-in tuple comparison feature simplifies the process. Using tuple comparison, we can efficiently sort and organize data by various fields. Check out my new post to learn how: https://nilcoalescing.com/blog/MultiCriteriaDataSortingWithTuples
Check out the talk I had to cancel at #DeepDishSwift There might be a nugget here that would surprise you. Check out the links in the description to go directly to a specific #Swift or #SwiftUI nugget
Does anyone know of a tool that analyses Xcode projects and then provides me with statistics on lines of code etc.? In any case, it should also take into account Swift packages used.
Thanks to @dimitribouniol and @glacials, we're much closer to the next Cork release! I was finally able to implement the first version of a self-compiled check, which was the only requirement left for the next release.
As promised, both Dimitri and Ben will be getting either a free Cork license or the cash equivalent, as well as a special shoutout in the contributors sections once the feature is fully implemented.
“To use for await item in streamOfItems {...}, you need an AsyncStream. It is very common that you already have an existing Combine publisher, and you want to use the nice Swift Concurrency syntax.”
I wish I understood why #swift and #iOS development has such a strong pull on me. I'm many months removed from the last time I worked on stuff, but I think about diving back in to learning Swift at least once a day.
Load sRGB image with alpha (see bottom “shadow” image with rounded-corners in SwiftUI preview)
Use CoreImage to composite over white
Get smaller, more “pointy” version
Cause: auto-conversion from sRGB to linear sRGB inside CoreImage is not happening, but the nodes are in the tree. Changing CIContext workingColorSpace to NSNull or non-linear sRGB “fixes” it — but can’t be used for correct compositing results. 🤯? #ios#swift#coreimage
All the tips in the book are focused on Swift and Swift Standard Library, so they can be applied to any platform, from iOS and macOS to Swift on the server.
I’ve been using new shiny languages for a while now. #Rust, #Zig and #Swift in particular.
I love Rust’s tooling, Swift’s syntax, and Zig’s philosophy, but I feel like good old #Cpp is still the goat.
Yeah, the syntax can get out of hand really quickly.
Yeah, the STL is bloated.
Yeah, the tooling ecosystem is a mess.
But at the end of the day, with a good style guide and some discipline, it can check most of my boxes.
But learning new languages is always fun so I’m still doing it 😬
Voxel editor coming along nicely now. Video is taken on the Mac but it also works on the iPad.
I've spent surprisingly little time on this. 20 hours total tops. Its amazing what you can get done with good quality tools, consistency (I normally do an hour pre and post dog walk), and a good set of fundamentals (its really making use of things I've learned in the last year or so). #swift#swiftui#metal
#Eventim-Nutzer sollen #Passwörter ändern - Daten aus dem #Darknet wurden eingesetzt, um Ticketverkäufe für #Taylor#Swift-Konzert in Deutschland zu manipulieren:
"Wie die Ticket-Plattform Eventim mitteilt, hätten in den letzten Tagen unbekannte Kriminelle versucht, sich unautorisiert Zugang zu Konten von Nutzerinnen und Nutzer zu verschaffen, um in den Besitz von Karten für Swifts "The Eras Tour" zu gelangen - und diese dann weiterzuverkaufen."
Alright, might be time to abstract #SwiftData in my app. Who has the best example? Should I use a ModelActor? Would a class holding a ModelContainer be sufficient if I create a new ModelContext inside the CRUD functions? #iosdev#swift
I’m trying to make a #swift package that vends at least two libraries.
The package builds each library fine, and I had no problem importing the first library into my app, but when I try to import the second library, it tells me “Cannot find ‘Foo’ in package. Did you mean ‘Foo’”
I’ve been fighting this for a few days. Any advice or pointers to projects I can learn from? #SwiftPM