Thanks for helping improve BaseNavigationStack. Please read the Code of Conduct first.
The project uses Git Flow:
| Branch | Purpose |
|---|---|
develop |
Integration branch and default branch. All pull requests target develop. |
release/x.y.z |
Short-lived branch that freezes a version: CHANGELOG date and docs only, no new features. |
main |
Stable branch. Only receives merges from release/* (or hotfix/*). Every commit on main is a released version. |
feature/*, fix/*, docs/*, chore/* |
Work branches, created from develop. |
hotfix/x.y.z |
Urgent fix created from main, merged into main and back into develop. |
- Branch from
develop. - Use Conventional Commits (
feat:,fix:,docs:,chore:,ci:,refactor:,test:). - Add or update tests, and add an entry under
## [Unreleased]in CHANGELOG.md for user-visible changes. - Before pushing:
Changes that affect rendering should also pass the example UI tests (scheme
swift test swiftlint --strict scripts/check-binary-size.sh # library must add < 80 KB to a release app
NavigationStackExample, targetNavigationStackExampleUITests); each step attaches a screenshot to the result bundle. - CI must pass (macOS, iOS Simulator, tvOS, watchOS, visionOS, example app build and UI tests, binary size, SwiftLint).
Semantic Versioning. Tags have no v prefix (2.0.0, 2.0.1). Removing or changing public API requires a major version.
- From an up-to-date
develop, createrelease/x.y.z. - In
CHANGELOG.md, rename## [Unreleased]to## [x.y.z] - YYYY-MM-DDand add a fresh empty## [Unreleased]above it. - Open a pull request
release/x.y.z→main. After CI passes, merge with a merge commit. - Tag the merge commit on
mainand push the tag:Thegit checkout main && git pull git tag -a x.y.z -m "x.y.z" git push origin x.y.z
Releaseworkflow checks that the tag is onmainand listed inCHANGELOG.md, runs the tests, and publishes a GitHub Release with that CHANGELOG section as notes. - Merge
mainback intodevelop(pull requestmain→develop) so the CHANGELOG date reachesdevelop.
Never move or delete a published tag: Swift Package Manager caches resolved versions.