Swift protocols and the main actor | Swift by Sundell
Swift by Sundell·24d ago
Swift protocols and the main actor In Swift, the @MainActor attribute can be used to associate a given type, function, or value with the global main actor, which essentially makes any such code...
Building a design system at Genius Scan | Swift by Sundell
Swift by Sundell·31 Aug 2025
Building a design system at Genius Scan As an app’s code base grows and evolves, it can be really tricky to maintain consistency within its UI.
Deciding between ‘let’ and ‘var’ for Swift struct properties | Swift by Sundell
Swift by Sundell·23 Jul 2025
Deciding between ‘let’ and ‘var’ for Swift struct properties When declaring a Swift property, we use either the let or var keyword depending on whether we want our new property to be read-only once...
Decoding Swift types that require additional data | Swift by Sundell
Swift by Sundell·30 Jun 2025
Decoding Swift types that require additional data Swift’s Codable API — which consists of the Encodable protocol for encoding, and Decodable for decoding — offers a powerful, built-in mechanism for...
Tips and tricks for when using SwiftUI’s ViewBuilder | Swift by Sundell
Swift by Sundell·30 May 2025
Tips and tricks for when using SwiftUI’s ViewBuilder SwiftUI’s ViewBuilder type is a key part of the library’s overall API design, in that it’s what enables multiple view expressions to be declared...
Using Swift’s defer keyword within async and throwing contexts | Swift by Sundell
Swift by Sundell·15 Apr 2025
Using Swift’s defer keyword within async and throwing contexts Swift’s defer keyword allows us to delay the execution of a given block of code until the current scope is exited.
Modern URL construction in Swift | Swift by Sundell
Swift by Sundell·31 Mar 2025
Modern URL construction in Swift These days, most applications need to work with URLs in some form.
Swift by Sundell is back! | Swift by Sundell
Swift by Sundell·31 Mar 2025
Swift by Sundell is back! I never actually decided to stop writing Swift articles. It just sort of happened.
SwiftUI views versus modifiers | Swift by Sundell
Swift by Sundell·27 Feb 2023
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Observing the content offset of a SwiftUI ScrollView | Swift by Sundell
Swift by Sundell·30 Jan 2023
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Combining opaque return types with primary associated types | Swift by Sundell
Swift by Sundell·12 Nov 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Switching between SwiftUI’s HStack and VStack | Swift by Sundell
Swift by Sundell·8 Jul 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Using the ‘some’ and ‘any’ keywords to reference generic protocols in Swift 5.7 | Swift by Sundell
Swift by Sundell·8 Jun 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Rendering SwiftUI views within UITableView or UICollectionView cells on iOS 16 | Swift by Sundell
Swift by Sundell·7 Jun 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Swift by Sundell turns five years old today! Here’s what’s next for the website and the podcast | Swift by Sundell
Swift by Sundell·5 May 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Type placeholders in Swift | Swift by Sundell
Swift by Sundell·14 Apr 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Abstract types and methods in Swift | Swift by Sundell
Swift by Sundell·15 Mar 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Sponsor: Judo | Swift by Sundell
Swift by Sundell·8 Mar 2022
This sponsored article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Equality | Swift by Sundell
Swift by Sundell·4 Mar 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Writing testable code when using SwiftUI | Swift by Sundell
Swift by Sundell·17 Feb 2022
This article has been archived, as it was published several years ago, so some of its information might now be outdated. For more recent articles, please visit the main article feed.
Your filters hide everything on this page. Adjust them in preferences.