Opening an Issue
Before writing any code, you need to communicate your plans with the maintainers:Create an issue
- Go to the Issues tab on GitHub
- Click “New issue”
- Clearly articulate the change, addition, or improvement you want to make
- Explain the scope and purpose of your proposed work
Code Formatting
SwiftFormat Requirement
IMPORTANT: You must have SwiftFormat installed. Before submitting your PR, run:Code Documentation Standards
All code must include comprehensive comments. Proper documentation helps other contributors understand your code and makes maintenance easier.- A clear description of what the function/class does
- Parameter documentation with types and purposes
- Return value documentation
- Inline comments explaining complex logic
Low-Effort Contributions
While we appreciate all interest in improving Loop, low-effort pull requests may be closed. Examples of low-effort contributions:- Fixing a single typo or grammatical error
- Rewording an existing localization string
- Changing or adding one-line comments without meaningful impact
- Minor one-liners that don’t meaningfully affect logic, behavior, or maintainability
For these small improvements, the issue you opened is usually sufficient. Maintainers will bundle these changes with larger updates to avoid merge conflicts and extra overhead.
Opening a Pull Request
Once your code is ready and tested:Commit your changes
Use meaningful commit messages with the appropriate emoji prefix:Required emoji prefixes:
- 🐞 Bug fixes must include a bug emoji
- ✨ Added features must include a star emoji
- 🌐 Localization must include a globe emoji
Create the pull request
- Go to GitHub and navigate to your fork
- You’ll see a button to “Create pull request” - click it
- Fill in the PR details:
- Clear title describing the change
- Description explaining what you did and why
- Reference to the issue you opened
- If your PR needs changes or isn’t ready for review, mark it as a draft PR
Review Process
After submitting your PR:- Automated checks will run (including SwiftFormat validation)
- Maintainer review - A maintainer will review your code
- Feedback - You may be asked to make changes
- Approval and merge - Once approved, your PR will be merged
Alternative Push Methods
You can push changes in several ways:- Xcode - Use the ‘Integrate’ option at the top of the code editor
- Command line - Use the git commands shown above (recommended)
- VS Code - Open the project in VS Code and use its git integration