Skip to content

Instantly share code, notes, and snippets.

View pixelfolio's full-sized avatar

Dominic Williams pixelfolio

View GitHub Profile
// MARK: - Tab Identifier Enum
enum TabIdentifier: String, CaseIterable {
case home
case search
case notes
case friends
case newNote
}
// MARK: - Example View
@steipete
steipete / swift-testing-playbook.md
Last active June 10, 2026 03:15
The Ultimate Swift Testing Playbook (feed it your agents for better tests!)

The Ultimate Swift Testing Playbook (2024 WWDC Edition, expanded with Apple docs from June 2025)

Updated with info from https://developer.apple.com/documentation/testing fetched via Firecrawl on June 7, 2025.

See also my blog: See also my blog post: https://steipete.me/posts/2025/migrating-700-tests-to-swift-testing

A hands-on, comprehensive guide for migrating from XCTest to Swift Testing and mastering the new framework. This playbook integrates the latest patterns and best practices from WWDC 2024 and official Apple documentation to make your tests more powerful, expressive, and maintainable.


1. Migration & Tooling Baseline