| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
Thank you for considering a contribution! Bug reports, fixes, documentation improvements, and well-scoped features are all welcome. This document explains how to get the project running locally and what a pull request needs before it can be merged.
| Path | What it is |
|---|---|
| Package.swift | Swift package manifest — the library is SPM-only |
| Sources/SwipeMenuViewController/ | Library sources and the DocC catalog |
| Tests/SwipeMenuViewControllerTests/ | Unit tests (Swift Testing, run on the iOS simulator) |
| Example/ | Demo app consuming the library as a local package |
Open the package directly in Xcode (File ▸ Open… ▸ Package.swift) or run the tests from the command line against any available iPhone simulator:
xcodebuild test \
-scheme SwipeMenuViewController \
-destination 'platform=iOS Simulator,name=iPhone 17' \
CODE_SIGNING_ALLOWED=NOReplace iPhone 17 with any simulator you have installed (xcrun simctl list devices available).
The example app's Xcode project is generated — Example.xcodeproj is not committed, and Example/project.yml is the source of truth:
cd Example
xcodegen generate
open Example.xcodeprojRe-run xcodegen generate whenever you change project.yml. See the Example README for details.
The codebase is formatted and linted with the Swift toolchain's built-in swift-format; the configuration lives in .swift-format. Before pushing:
swift format --in-place --recursive --parallel Sources Tests Example/Example Example/ExampleTests Package.swift
swift format lint --strict --recursive --parallel Sources Tests Example/Example Example/ExampleTests Package.swiftCI fails if the tree is not formatter-clean or any lint rule fires.
The public API is documented with DocC (Sources/SwipeMenuViewController/SwipeMenuViewController.docc). If your change touches the public API, update the documentation comments and, where relevant, the articles. CI builds the documentation with warnings treated as errors, so broken symbol links fail the build:
xcodebuild docbuild \
-scheme SwipeMenuViewController \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGNING_ALLOWED=NO \
OTHER_DOCC_FLAGS='--warnings-as-errors'The published documentation at yysskk.github.io/SwipeMenuViewController is deployed automatically from main.
User-facing changes (new options, behavior changes, bug fixes) get an entry in the Unreleased section of CHANGELOG.md. Internal refactors and CI changes do not need one.
For anything larger than a bug fix, consider opening an issue first to discuss the direction.
| Back | FazBrowse Home | New Git URL |