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
    IOS Development profile picture

What are enums in Swift? Swift comes with types of objects that we can use to write type declarations. They all have their own distinct features, upsides, and downsides. In this post I’d like to zoom in on the enum type so you can get a sense of what enums are, and when they can be useful. In this post […]
https://www.donnywals.com/what-are-enums-in-swift/


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

How to add a privacy manifest file to your app for required reason API usage? Apple has recently introduced a new requirement that makes it so that apps that use certain APIs for Apple's mobile platforms (iOS, iPadOS, tvOS, watchOS) must declare their intended use of certain APIs. This requirement has gone in effect on May 1st which means that any app updates or submissions that don't meet Apple's new […]
https://www.donnywals.com/how-....to-add-a-privacy-man


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

What is defer in Swift? Sometimes, we write code that needs set some state or perform some work at the start of a function and at the end of that same function we might have to reset that state, or perform some cleanup regardless of why we’re exiting that function. For example, you might have a function that creates a […]
https://www.donnywals.com/what-is-defer-in-swift/


Discover the world at Altruu, The Discovery Engine