Thanks for your interest in improving Preview Debugger! This document explains how to build, test, and lint the project, and what to expect when opening a pull request.
- Xcode 15 or later (Swift 5.9+)
- macOS with the SwiftUI / iOS SDKs installed
- SwiftLint for linting (optional locally, enforced in CI)
swift buildswift testPlease add or update tests under Tests/ when you change behavior.
The repository ships a .swiftlint.yml configuration that enables a curated set
of rules via only_rules. Run the linter from the repository root:
brew install swiftlint # if you don't have it yet
swiftlintCI runs SwiftLint as a separate job, so make sure it passes before pushing.
- Branch off
mainand keep your branch focused on a single change. - Make sure
swift build,swift test, andswiftlintall pass. - Update
CHANGELOG.mdunder the## [Unreleased]section when your change is user-facing. - Update documentation (README and the DocC catalog) when you add or change public API.
- Write a clear PR description explaining the motivation and the change.
By contributing, you agree that your contributions will be licensed under the project's MIT License.