John Sundell

@johnsundell
6.7K Followers
52 Following
276 Posts
Swift and Rust developer. Creator of Swift by Sundell, and co-host of the Stacktrace podcast.
Websitehttps://swiftbysundell.com
Stacktracehttps://stacktracepodcast.fm
GitHubhttps://github.com/johnsundell
Workshopshttps://www.mobileworkshops.io

New article about deciding whether to use 'let' or 'var' when declaring Swift struct properties! 😀

https://www.swiftbysundell.com/articles/let-vs-var-for-swift-struct-properties

Deciding between ‘let’ and ‘var’ for Swift struct properties | Swift by Sundell

Does marking a given Swift struct property as either ‘let’ or ‘var’ simply determine its mutability, or is there more to it? Let’s explore!

Swift by Sundell
New article about a bit of a hidden gem within Swift's built-in Codable API - CodableWithConfiguration, which is super useful when we need to decode a type which requires additional data not present in the JSON (or whichever other data we're decoding from): https://www.swiftbysundell.com/articles/decoding-swift-types-that-require-additional-data
Decoding Swift types that require additional data | Swift by Sundell

How Swift’s CodableWithConfiguration API can be used to inject additional, required data into a type’s decoding process, without having to use optionals or declare any additional decoding-specific types.

Swift by Sundell

It's time for a new article! 😀 This time, I'm sharing some tips and tricks for when using SwiftUI's ViewBuilder to create custom container views. Hope you'll enjoy it, and happy Friday!

https://www.swiftbysundell.com/articles/swiftui-viewbuilder-tips-and-tricks

Tips and tricks for when using SwiftUI’s ViewBuilder | Swift by Sundell

Let’s explore how we can use SwiftUI’s ViewBuilder within our own code, and a few things that can be good to keep in mind when doing so.

Swift by Sundell

This time, it took me just two weeks (instead of two years 😅) to publish another new article!

Here's "Using Swift's defer keyword within async and throwing contexts", hope you'll find it useful 👍

https://www.swiftbysundell.com/articles/using-defer-within-async-and-throwing-contexts

Using Swift’s defer keyword within async and throwing contexts | Swift by Sundell

How Swift’s defer keyword can be incredibly useful when working with code scopes that have multiple exit points, such as throwing or async functions.

Swift by Sundell

Yesterday, I didn't just announce that Swift by Sundell is back (🎉), but I also published the first new article on the website in two years - about modern URL construction using the latest Foundation APIs and a custom extension/macro!

Hope you'll enjoy it 😀

https://www.swiftbysundell.com/articles/modern-url-construction-in-swift

Modern URL construction in Swift | Swift by Sundell

How to combine Foundation’s latest URL APIs with Swift features like macros, to be able to work with both static and dynamic URLs in simpler and more predictable ways.

Swift by Sundell

We're particularly excited to enable @johnsundell to bring back Swift by Sundell! This is one of the most valuable resources for the Swift developer community, and we were really missing it!

https://swiftbysundell.com/special/swift-by-sundell-is-back/

Swift by Sundell is back! | Swift by Sundell

After a two-year hiatus, Swift by Sundell is finally back, with new articles published on a regular basis.

Swift by Sundell
Swift by Sundell is back! | Swift by Sundell

After a two-year hiatus, Swift by Sundell is finally back, with new articles published on a regular basis.

Swift by Sundell
204: “Ship a prompt” | Stacktrace

Stacktrace is back! John and Rambo check their hype levels for WWDC24, and discuss how AI might fit into Apple’s plans for this year’s releases. Also, Xcode wishes, and the challenges of building distributed systems.

Stacktrace

On this new episode of Stacktrace, @_inside and I reflect on what we've learned and how we've been improving as developers during 2023. It was a really fun discussion - hope you'll enjoy it! 😀

https://stacktracepodcast.fm/episodes/203

203: “The Sherlock Holmes of debugging” | Stacktrace

John and Rambo reflect on what they’ve been learning and how they’ve been aiming to improve as developers during 2023. Also, tips for getting better at debugging, deploying generative AI within existing apps, and are view models really such a good fit for SwiftUI views?

Stacktrace
No poker this time, but you'll still want to listen to @johnsundell and I talk about Apple's "Scary Fast" event, the iPhone 15 Pro Max, and CleanupBuddy on the latest episode of Stacktrace: https://stacktracepodcast.fm/episodes/202/
202: “Incrementing the integer” | Stacktrace

Reactions to Apple’s “Scary fast” event, Rambo’s review of the iPhone 15 Pro Max, and under the hood of CleanupBuddy.

Stacktrace