I like to measure my speed inside trains and buses. When I was searching for a speedometer app, the majority of them were ugly, with tons of ads. I was searching for an Apple Watch Speedometer with complications, iOS App with Widgets and did not found. Because of that I decided to create my own app. First thing was measure speed using CLLocationManager.
Installation
The Swift Package Manager is the easiest way to install and manage SpeedManagerModule as a dependecy.
Simply add SpeedManagerModule to your dependencies in your Package.swift file:
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Your description why you should use NSLocationAlwaysAndWhenInUseUsageDescription</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Your description why you should use NSLocationAlwaysAndWhenInUseUsageDescription</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your description why you should use NSLocationAlwaysAndWhenInUseUsageDescription</string>
var speedManagerKmh = SpeedManager(.kilometersPerHour)
var speedManagerMs = SpeedManager(.meterPerSecond)
var speedManagerMph = SpeedManager(.milesPerHour)
SpeedManagerModule
Measure the speed using an iPhone or Apple Watch.
Motivation
I like to measure my speed inside trains and buses. When I was searching for a speedometer app, the majority of them were ugly, with tons of ads. I was searching for an Apple Watch Speedometer with complications, iOS App with Widgets and did not found. Because of that I decided to create my own app. First thing was measure speed using
CLLocationManager
.Installation
The Swift Package Manager is the easiest way to install and manage SpeedManagerModule as a dependecy. Simply add SpeedManagerModule to your dependencies in your Package.swift file:
Update Info.plist
Add the correct permission descriptions
Add the background location updates in xcode
Or add the info to the Info.plist
Usage example
@StateObject
Using Delegates
Changing Unit
Just choose the unit during the class init.
Demo
Check the
Demo
folder to see it in action.https://user-images.githubusercontent.com/3648336/208701407-ebf7319f-32c1-45bc-adc7-aa8509f0336d.mov
Meta
@ezefranca – @ezefranca
Distributed under the MIT license. See
LICENSE
for more information.https://github.com/ezefranca/SpeedManagerModule