Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
- Added Mapkit and swiftui feature newly introduce in iOS 17
  • Loading branch information
SURYAKANTSHARMA authored Oct 30, 2024
1 parent 966be9d commit 0b9ea0f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ Realistic animation: The library offers a lifelike animation of a car moving alo
Customizable appearance: Developers can customize various aspects of the animation, including the car image, route color, and animation speed, to match their app's visual style.
Simple integration: With a few lines of code, you can seamlessly integrate the UberCarAnimation into your iOS app, saving time and effort in development.

- Added Sample project for both UIKit and SwiftUI with Google Maps
- MapKit with SwiftUI Integration: Demonstrates integrating MapKit directly in SwiftUI, adding annotations and polylines to represent routes dynamically.


# Requirements
- Xcode 14+
- Swift 5+
- Added Sample project for both UIKit and SwiftUI
- Xcode 16+
- Swift 6+
# Usage
**With Google Maps**
Replace `ADD_YOUR_GOOGLE_API_KEY` in class `AppDelegate.swift` from your actual google api key from [Here](https://developers.google.com/maps/documentation/ios-sdk/get-api-key)
Once you have your app running in the simulator, select simulate locations in Xcode as follows
![screen shot 2019-02-11 at 6 08 12 pm](https://user-images.githubusercontent.com/6416095/52563640-0d680080-2e28-11e9-9c03-51c3720b3d69.png)
Expand All @@ -27,6 +32,12 @@ Note: We are using the static path string for giving driving road location from
|:-----------------:|:---------------------:|
|<img src= "https://user-images.githubusercontent.com/6416095/52931260-c6bb5e80-3371-11e9-9d46-83f7d1389d18.gif" width="400" height = "865">|<img src= "Resources/darkmode.gif" width="400" height = "865" alt = "Unable to load gif">|

**With Apple MapKit new swift APIs**
- used MKDirections APIs for Polyline

|<img src= "https://github.com/user-attachments/assets/3110a08a-99e6-4b1d-85bc-607f9bcd6ab8" width="400" height = "865" alt = "Unable to load gif">|


Pause and play

1. Simulate the location on the simulator
Expand Down

0 comments on commit 0b9ea0f

Please sign in to comment.