Tiny iOS docs fixes (#2803)

Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
mdaines
2024-09-11 10:04:45 -04:00
committed by GitHub
parent a0580a6de6
commit 9caab9ba98

View File

@@ -45,14 +45,13 @@ struct SimpleMap: UIViewRepresentable {
}
```
You can use this view directly in a SwiftUI View hierarcy, for example:
You can use this view directly in a SwiftUI View hierarchy, for example:
```swift
struct MyApp: App {
var body: some Scene {
WindowGroup {
MapLibreMapView().edgesIgnoringSafeArea(.all)
SimpleMap().edgesIgnoringSafeArea(.all)
}
}
}
@@ -84,4 +83,4 @@ class SimpleMap: UIViewController, MLNMapViewDelegate {
func mapView(_: MLNMapView, didFinishLoading _: MLNStyle) {
}
}
```
```