Genius Scan’s SDK
Thanks to the Genius Scan team for sponsoring Swift by Sundell.
Articles, podcasts and news about Swift development, by John Sundell.
Swift by Sundell is frequently updated with new articles, podcast episodes, videos, and more.
Subscribe via RSS to get notified when new content gets published.
Thanks to the Genius Scan team for sponsoring Swift by Sundell.
How to round the corners of a UIKit or SwiftUI view in various ways.
How a Swift property wrapper can refer to its enclosing type, and examples of how that capability could be used.
Ellen Shapiro returns to the show to discuss framework and SDK development, and how that often requires a somewhat different process from app development. Also, API design, GraphQL, using the standard library’s protocol-oriented design, and more.
How SwiftUI’s AnyView type can often be avoided, and why it might be a good idea to do so.
Thanks to DetailsPro for sponsoring Swift by Sundell.
How to validate email addresses in Swift using a dedicated RawRepresentable type and Foundation’s NSDataDetector API.
How URLSession can be used to perform POST requests and file uploads without any third party libraries.
How key paths can be made much more powerful when used to query and filter collections.
A few tips on configuring continuous integration for various projects using Bitrise.
How a SwiftUI view’s body can be split up into multiple computed properties, which is a great alternative to using separate types in certain situations.
On this special episode of the show, John wraps up the 2020 season by revisiting some of the key themes and topics that were discussed on the show during the year.
What’s new in the next major version of Swift by Sundell, and what my plans for 2021 are.
Thanks a lot to Instabug for sponsoring Swift by Sundell.
Wrapping up the weekly article series with three of my major overall learnings after close to four years of continuous writing about Swift.
Thanks a lot to Architecting SwiftUI apps with MVC and MVVM for sponsoring Swift by Sundell.
A look at what it means for SwiftUI to be a value-driven UI framework, and how we might need to break certain assumptions when adopting SwiftUI within our projects.
Lightweight state observations.
Chris Eidhof returns to the show to go on a deep dive into the SwiftUI layout system. What are the different phases involved in determining a given view’s layout, how do concepts like layout priorities and flexibility work, and what makes SwiftUI different from UIKit and AppKit in terms of layout?
A look at the various sorting APIs that the Swift standard library offers, and how we could augment those APIs in order to make more advanced sorting tasks easier to perform.
A neat technique for values that can’t be created with a single line of code.
Thanks a lot to Instabug for sponsoring Swift by Sundell.
How custom Combine operators and convenience APIs can be implemented using extensions, and how doing so can let us eliminate common sources of boilerplate when implementing things like networking and data validation.
Daniel Steinberg joins John to discuss how various functional programming patterns can be adopted in Swift, and how many of those patterns can be found in both the standard library and in frameworks like Combine and SwiftUI.
In this second article about integrating SwiftUI and UIKit, we’ll take a look at how SwiftUI views can be embedded within UIKit-based view controllers, and various ways of sharing state between them.
Using a dedicated protocol to make it easy to define new containers.
A closer look at how SwiftUI and UIKit can be combined in various ways, starting with how we can bring increasingly complex UIKit-based views and view controllers into the declarative world of SwiftUI.
James Thomson, creator of PCalc, returns to the show to discuss how developers can bring their apps to multiple Apple platforms using technologies like Catalyst and SwiftUI, and how and when it can be a good idea to share code across platforms.
Thanks a lot to Using Paw to test an app’s web API for sponsoring Swift by Sundell.
Formatting numbers into human-readable strings can often be tricker than expected. Let’s explore why that is, and what kind of tools and techniques that can be good to keep in mind when formatting different kinds of numbers.
Thanks a lot to RevenueCat for sponsoring Swift by Sundell.
How Combine’s operators for connecting and merging publishers can be used to solve real-world problems, such as nested network calls, handling multiple input sources, and more.
Vincent Pradeilles joins John to discuss various ways to use Swift language features like key paths and closures, how they relate to patterns typically used within functional programming, and when and how to adopt such patterns.
Thanks a lot to Sim Genie for sponsoring Swift by Sundell.
An overview of the sort of patterns and techniques that Swift’s extensions enable us to adopt, and how extensions can turn out to be one of the most powerful features that the language has to offer.
Combining dynamic and constant output values.
My latest article on the Bitrise blog.
Thanks a lot to Strings for sponsoring Swift by Sundell.
A few different patterns and approaches that can be used to handle and render asynchronous loading states within SwiftUI-based views.