A better way to extend types
Explores a protocol-based approach to extending types in Swift, improving versatility and discoverability compared to traditional type extensions.
Explores a protocol-based approach to extending types in Swift, improving versatility and discoverability compared to traditional type extensions.
A Swift tutorial on how to fetch images from the AppKit NSPasteboard, making it behave more like UIKit's UIPasteboard.
A tutorial on creating custom command plugins for the Swift Package Manager, focusing on integrating tools like SwiftLint for source code formatting.
Using conditional compilation and deployment targets to manage SwiftUI version compatibility and remove outdated code shims.
A technical guide on how to resize images in Swift using UIGraphicsImageRenderer and AVFoundation while preserving aspect ratio.
A guide to safely unwrapping optional values in Swift using optional binding, covering syntax, use cases, and best practices.
A tutorial on implementing file selection from the iOS Files app using UIDocumentPickerViewController, covering setup, delegation, and security-scoped resource access.
The creator of Swift by Sundell reflects on the website's five-year anniversary, its growth, and future plans for content and the podcast.
Explains how Swift's @MainActor annotation works, detailing its implementation using global actors and custom executors to ensure code runs on the main thread.
Explores the challenges of designing a Codable format for Swift's AttributedString, focusing on Unicode complexities like grapheme clusters and normalization.
A Swift tutorial solving the 'Longest Substring Without Repeating Characters' algorithm problem using a sliding window technique.
Explains iterative and recursive solutions to merge two sorted linked lists in Swift, based on LeetCode problem #21.
A tutorial explaining how to implement the MVVM (Model-View-ViewModel) architectural pattern in SwiftUI applications.
Learn how to use Swift's DispatchGroup to manage and synchronize multiple asynchronous API callbacks effectively.
A step-by-step tutorial on adding a basic iOS widget extension to an existing Xcode project using Swift and WidgetKit.
A guide to creating a type-safe heterogeneous dictionary in Swift, similar to SwiftUI's environment, with custom keys and value types.
A guide to implementing an accessible custom tab bar in iOS, covering the Large Content Viewer and .tabBar trait to match native behavior.
Explains Swift 5.6's type placeholders, a feature that simplifies generic type declarations by letting the compiler infer certain types.
A guide to implementing unit testing and UI testing for Swift applications, covering principles, best practices, and a practical case study.
Explains the Visitor design pattern in Swift with code examples, showing how to add functionality to objects without modifying their original code.