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
I managed to get a little something running on a Pimoroni PicoSystem using Embedded #Swift !
The PicoSystem uses an RP2040, so I was able to use the embedded examples from Apple to get started.
The demo is using the PicoSystem SDK on top of the Pico SDK. I had to work around the C++ name mangling differences between g++ and Clang by making a thin C wrapper.
I’ll be publishing the code somewhere soon, and hope to have a more interesting demo eventually.
Now that Apple is forced to open their mobile operating systems for third party devs in an unprecedented manner, can we work on an indie foss podcatcher that does not suck?
In my SwiftUI code, I have my very own design pattern called "tracker pattern", which I suppose could be somewhat of a derivate of the ViewModel pattern.
I have ObservableObjects, which store some app-wide data, and write extensions on them to mutate this data (if I remember to do that 😅)
Now to my question: Can I write a protocol (or something else) that I could then conform my trackers to, which would automatically add @MainActor to them all?
My friend is looking into contributing to open source but doesn't know where to start. They have experience in Python, C# (Unity), Swift, and React. Does anyone have some pointers or projects they could look into to get started?
Here's another inquiry thrown out into the Mastodon fediverse ...
Any of you live in Vancouver, B.C.? As you might have heard, I'll be going to the early December #TaylorSwift concert at Vancouver's BC Place stadium. So I'm wondering: what are the best, not-so-expensive places to stay nearby?
Thanks for any advice you can give on procuring lodging near (or maybe somewhat near) the stadium around the concert day!
I ran into a weird #swift issue today. I am organising our codebase to use local packages for various things. I have an error enum defined in a local package. There is a class in the main application target that throws the error. But when I try to check that the error is correctly thrown in a unit test, the catch doesn’t capture it. Trying to print the type and value with the help of type(of:) does give the correct looking result. I even tried with the full type including the module name.
I‘ve been using these convenience APIs in all my projects for years. Never had any need for a more complex Auto Layout replacement like SnapKit for example.