Snapshot testing in XCTest
A guide to implementing snapshot testing for iOS UI using iOSSnapshotTestCase (formerly FBSnapshotTestCase) within XCTest and XCUITest.
A guide to implementing snapshot testing for iOS UI using iOSSnapshotTestCase (formerly FBSnapshotTestCase) within XCTest and XCUITest.
Explains how to use test fixtures in Swift to simplify unit test setup, making code cleaner and more focused.
Explains how to use bundle identifiers in XCTest to launch and test multiple iOS apps, including system apps and alerts.
A guide to managing environment-specific configuration (like API keys and URLs) in Xcode projects using plist files and xcconfig build settings.
A guide to creating a custom Fastlane plugin for retrying failed XCTests to improve UI test stability in iOS development.
Explains a workaround for creating private properties in Swift protocols to hide implementation details from conforming types.
A guide to generating random numbers and values in Swift using the native APIs introduced in Swift 4.2, covering basic generation, collections, and custom types.
A tutorial explaining the Swift delegate design pattern, including protocol definition, implementation, and memory management with weak references.
A tutorial explaining the abstract factory design pattern in Swift, including code examples for creating families of related objects.
A tutorial on implementing the simple factory design pattern in Swift to encapsulate object creation, using examples like color and environment factories.
A tutorial on implementing the Builder design pattern in Swift to simplify the creation of complex objects like emitters, themes, and URLs.
A Swift tutorial on setting up iCloud Drive for iOS apps, covering project configuration, entitlements, and file management.
A Swift tutorial demonstrating how to download and parse JSON data using the built-in URLSession and Codable protocol, without external dependencies.
Explores ABI stability in Swift, its importance for binary frameworks, and why it's not yet sufficient for shipping them.
A comprehensive tutorial on Apple's Combine framework for declarative, functional reactive programming in Swift, covering publishers, operators, and subscribers.
Introduces LifetimeTracker, a tool for iOS developers to detect retain cycles and memory leaks during development, improving debugging efficiency.
Explains a Swift KVO crash with .initial option and provides a solution using global/static context variables for thread safety.
A tutorial on using Xcode's 'Capture View Hierarchy' debug feature to visualize the view hierarchy of the iOS 10 Maps app.
Explains how to use Swift protocol composition to simplify dependency injection and reduce boilerplate in iOS projects.
A tutorial on using XCTest closure-based expectations with NSPredicate to test asynchronous Swift code.