IOS Development profile picture

Choosing between LazyVStack, List, and VStack in SwiftUI SwiftUI offers several approaches to building lists of content. You can use a VStack if your list consists of a bunch of elements that should be placed on top of each other. Or you can use a LazyVStack if your list is really long. And in other cases, a List might make more sense. In […]
https://www.donnywals.com/choo....sing-between-lazyvst


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

Protecting mutable state with Mutex in Swift Once you start using Swift Concurrency, actors will essentially become your standard choice for protecting mutable state. However, introducing actors also tends to introduce more concurrency than you intended which can lead to more complex code, and a much harder time transitioning to Swift 6 in the long run. When you interact with state that’s […]
https://www.donnywals.com/prot....ecting-mutable-state


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

Using singletons in Swift 6 Singletons generally speaking get a bad rep. People don’t like them, they cause issues, and generally speaking it’s just not great practice to rely on globally accessible mutable state in your apps. Instead, it’s more favorable to practice explicit dependency passing which makes your code more testable and reliable overall. That said, sometimes you’ll have […]
https://www.donnywals.com/usin....g-singletons-in-swif


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

Using Instruments to profile a SwiftUI app A key skill for every app developer is being able to profile your app's performance. Your app might look great on the surface, but if it doesn’t perform well, it’s going to feel off—sometimes subtly, sometimes very noticeably. Beautiful animations, slick interactions, and large data sets all fall flat if the app feels sluggish or […]
https://www.donnywals.com/usin....g-instruments-to-pro


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

Staying productive as an indie developer Okay. I’m using the term indie developer loosely here. I don’t consider myself to be an indie developer. But I am independent, mostly. I run my own business where I work on client apps, workshops, my books, this website, my YouTube channel, and more. So I think I qualify as indie, partially. Either way, in […]
https://www.donnywals.com/stay....ing-productive-as-an


Discover the world at Altruu, The Discovery Engine