Skip to content

Commit e713f13

Browse files
authored
Merge pull request #25 from Rallista/feat/docc-init
2 parents 1eb1618 + a1a2a93 commit e713f13

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.spi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 1
2+
builder:
3+
configs:
4+
- documentation_targets: [MapLibreSwiftUI]
5+
platform: ios
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ``MapLibreSwiftUI``
2+
3+
A SwiftUI framework for Maplibre Native iOS. Provides declarative methods for MapLibre inspired by default SwiftUI functionality.
4+
5+
## Overview
6+
7+
```swift
8+
struct MyView: View {
9+
10+
@State var camera: MapViewCamera = .default()
11+
12+
var body: some View {
13+
MapView(
14+
styleURL: URL(string: "https://demotiles.maplibre.org/style.json")!,
15+
camera: $camera
16+
) {
17+
// Declarative overlay features.
18+
}
19+
.onTapMapGesture { context in
20+
// Handle tap gesture context
21+
}
22+
}
23+
}
24+
```
25+
26+
## Topics
27+
28+
### MapView
29+
30+
- ``MapView``
31+
32+
### MapViewCamera
33+
34+
- ``MapViewCamera``
35+
- ``CameraState``
36+
- ``CameraPitch``
37+
- ``CameraChangeReason``
38+

0 commit comments

Comments
 (0)