TKUITripMonitorManager

@available(iOS 14.0, *)
@MainActor
public class TKUITripMonitorManager : NSObject, ObservableObject

The manager for trip notifications such as “get off at the next stop” or “your trip is about to start”

Requirements:

  • Project > Your Target > Capabilities > Background Modes: Enable “Location Updates”
  • Project > Your Target > Info: Include both NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription
  • Then call TKUINotificationManager.shared.subscribe(to: .tripAlerts) { ... } in your app.