IOS Development profile picture

@preconcurrency usage in swift explained When you enable strict concurrency checks for your existing projects, it’s likely that Xcode will present loads of warnings and/or errors when you compile your project for the first time. In this post, I’d like to take a look at a specific kind of error that relates to code that you didn’t write. The @preconcurrency […]
https://www.donnywals.com/prec....oncurrency-usage-in-


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

Programmatic navigation in SwiftUI with NavigationPath and navigationDestination One of the key features that was missing from SwiftUI when it first shipped was a good way to do programmatic navigation. There were some ways to handle this before iOS 16 introduced NavigationPath but it wasn’t very satisfying to use those APIs and they could be rather unreliable at times. To see an example, […]
https://www.donnywals.com/prog....rammatic-navigation-


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

Turn off sidebar hiding on NavigationSplitView in SwiftUI By default, a NavigationSplitView in SwiftUI will show users an option to toggle the visibility of the sidebar. If you want to prevent this button from showing up so that users will always have to see your sidebar, you can do this by applying the toolbar(removing view modifier to your split view's sidebar as follows: […]
https://www.donnywals.com/turn....-off-sidebar-hiding-


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

How to decide between a Set and Array in Swift? Collections are a key component in any programming language. We often refer to collections as Array or Set but there are several other kinds of collections in programming like String (often a collection of type Character) and ArraySlice (referring to a part of an array). In this post, I’d like to explore two of the […]
https://www.donnywals.com/how-....to-decide-between-a-


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

Swift’s “if” and “switch” expressions explained In Swift, we sometimes want to assign a property based on whether a certain condition is true or false, or maybe based on the value of an enum. To do this, we can either make a variable with a default value that we change after checking our condition or we define a let without a […]
https://www.donnywals.com/swif....ts-if-and-switch-exp


Discover the world at Altruu, The Discovery Engine