Skip to content

Commit

Permalink
Updated ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Jun 30, 2022
1 parent efd2c23 commit 8c99e19
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,27 +75,29 @@ Check out the example application to see FlyoverKit in action. Simply open the `
When using SwiftUI a `FlyoverMap` can be used to render and control a flyover.

```swift
FlyoverMap(
// Bool value if flyover is started or stopped
isStarted: true,
// The coordinate to perform the flyover on
coordinate: CLLocationCoordinate2D(
latitude: 37.8023,
longitude: -122.4057
),
configuration: Flyover.Configuration(
// The animation curve
animationCurve: .linear,
// The altitude in meter
altitude: 900,
// The pitch in degree
pitch: 45.0,
// The heading step
headingStep: .incremented(by: 1.5)
),
// The map type e.g. .standard, .satellite, .hybrid
mapType: .standard
)
var body: some View {
FlyoverMap(
// Bool value if flyover is started or stopped
isStarted: true,
// The coordinate to perform the flyover on
coordinate: CLLocationCoordinate2D(
latitude: 37.8023,
longitude: -122.4057
),
configuration: Flyover.Configuration(
// The animation curve
animationCurve: .linear,
// The altitude in meter
altitude: 900,
// The pitch in degree
pitch: 45.0,
// The heading
heading: .incremented(by: 1.5)
),
// The map type e.g. .standard, .satellite, .hybrid
mapType: .standard
)
}
```

### UIKit
Expand Down

0 comments on commit 8c99e19

Please sign in to comment.