-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a789bbe
commit 458daff
Showing
9 changed files
with
182 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: [maplibre] | ||
open_collective: maplibre |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Issue/Motivation | ||
|
||
What issue is this PR targeting? | ||
|
||
## Tasklist | ||
|
||
- [ ] Include tests (if applicable) and examples (new or edits) | ||
- [ ] If there are any visual changes as a result, include before/after screenshots and/or videos | ||
- [ ] Add #fixes with the issue number that this PR addresses | ||
- [ ] Update any documentation for affected APIs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Contributor Covenant | ||
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](https://github.com/maplibre/maplibre/blob/main/CODE_OF_CONDUCT.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Contributor Guide | ||
|
||
This project is a standard Swift package. | ||
|
||
## Environment setup | ||
|
||
The only special thing you might need besides Xcode is [`swiftformat`](https://github.com/nicklockwood/SwiftFormat). | ||
We use it to automatically handle basic formatting and to linting | ||
so the code has a standard style. | ||
|
||
Check out the swiftformat [Install Guide](https://github.com/nicklockwood/SwiftFormat?tab=readme-ov-file#how-do-i-install-it) | ||
to add swiftformat to your machine. | ||
Once installed, you can autoformat code using the command: | ||
|
||
```sh | ||
swiftformat . | ||
``` | ||
|
||
Swiftformat can occasionally poorly resolve a formatting issue (e.g. when you've already line-broken a large comment). | ||
Issues like this are typically easy to manually correct. | ||
|
||
## Structure | ||
|
||
This package is structured into a few targets. `InternalUtils` is pretty much what it says. `MapLibreSwiftDSL` and | ||
`MapLibreSwiftUI` are published products, and make up the bulk of the project. Finally, `Examples` is a collection of | ||
SwiftUI previews. | ||
|
||
The DSL provides a more Swift-y layer on top of the lower level MapLibre APIs, and features a number of | ||
result builders which enable more modern expressive APIs. | ||
|
||
The SwiftUI layer publishes a SwiftUI view with the end goal of being a universal view that can be adapted to a wide | ||
variety of use cases, much like MapKit's SwiftUI views. | ||
|
||
## Testing | ||
|
||
We do not currently have full UI tests. | ||
These are a bit tricky due to the async nature of MapLibre and integrating this into an Xcode UI test is challenging. | ||
If you have any suggestions, we welcome them! | ||
|
||
## PRs | ||
|
||
If you're using this project and want to improve it, send us a PR! | ||
We have a checklist in our PR template to help reviews go smoothly. | ||
|
||
NOTE: If possible, enable maintainer edits when you open PRs. | ||
If your PR is good and just needs a few minor edits to get merged, | ||
we can often put those finishing touches on for you. | ||
In order to allow maintainer edits, | ||
you need to send PRs from a personal fork (org-owned ones have funky auth). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
For an up-to-date policy refer to | ||
https://github.com/maplibre/maplibre/blob/main/SECURITY_POLICY.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters