Thanks for your interest in contributing! This document explains how to report issues, propose changes, and submit pull requests.
This project follows the Contributor Covenant Code of Conduct. By participating, you are expected to uphold it.
Before opening an issue, please:
- Search existing issues to avoid duplicates.
- Confirm the bug reproduces on the
mainbranch with the latest Xcode. - Include:
- iOS version and device model (or simulator)
- Xcode version
- Steps to reproduce
- Expected vs actual behavior
- Relevant console output or crash logs
Do not open public issues for security vulnerabilities. See SECURITY.md for the disclosure process.
For non-trivial changes, please open an issue first to discuss the approach before investing implementation time.
- Fork the repository and create a feature branch from
main. - Make your changes with clear, focused commits.
- Add or update tests (Swift Testing) for any behavioral changes.
- Build and run the test suite in Xcode (
Cmd+U). - Run SwiftLint and resolve any new warnings.
- Push your branch and open a pull request against
main. - In the PR description, explain what changed and why.
This project uses SwiftLint for code style. Please ensure it passes before submitting.
Architecture: Simple MVVM Layered Architecture with @Observable state management. Follow existing patterns for new screens and view models.
- Tests use Swift Testing.
- Place new tests alongside existing ones mirroring the source structure.
This substrate is consumed by nativeapptemplate-agent, which mechanically renames Shop, Shopkeeper, and ItemTag (and all their case forms — PascalCase, snake_case, camelCase, flat, UPPER_SNAKE, humanized lower/title/sentence × singular/plural) to user-chosen target words. Some patterns that read fine in this repo break when renamed.
Before merging changes that touch user-facing strings, test descriptors, or comments mentioning domain entities, read the substrate rename-safety contract.
Quick rule of thumb: avoid "a" / "an" directly preceding Shop, Shopkeeper, or ItemTag (or their humanized forms) — write self-contained or article-free phrasings instead.
Failure mode this prevents: a string like "Swipe an item tag to ..." reads correctly here but produces "Swipe an patient to ..." after the rename pipeline substitutes a consonant-starting word like Patient.
See README.md for full setup instructions.
By contributing, you agree that your contributions will be licensed under the MIT License.