Skip to content

Commit

Permalink
Show missing stop name in trip overview card on stops along the way (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk authored Oct 26, 2023
1 parent e5e1fa1 commit 1f41ebf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/TripKitUI/helper/TKUIMapManagerHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class TKUIMapManagerHelper: NSObject {
points.append(TKUICircleAnnotation(
coordinate: visit.coordinate,
title: visit.title,
subtitle: visit.subtitle,
circleColor: service.color ?? .tkAppTintColor,
isTravelled: segment.uses(visit),
asLarge: true,
Expand Down Expand Up @@ -187,9 +188,10 @@ class TKUIMapManagerHelper: NSObject {
}

fileprivate class TKUICircleAnnotation: NSObject, TKUICircleDisplayable, TKUISelectableOnMap {
internal init(coordinate: CLLocationCoordinate2D, title: String? = nil, circleColor: UIColor, isTravelled: Bool, asLarge: Bool, selectionIdentifier: String?, selectionCondition: TKUISelectionCondition) {
internal init(coordinate: CLLocationCoordinate2D, title: String? = nil, subtitle: String? = nil, circleColor: UIColor, isTravelled: Bool, asLarge: Bool, selectionIdentifier: String?, selectionCondition: TKUISelectionCondition) {
self.coordinate = coordinate
self.title = title
self.subtitle = subtitle
self.circleColor = circleColor
self.isTravelled = isTravelled
self.asLarge = asLarge
Expand All @@ -204,6 +206,7 @@ fileprivate class TKUICircleAnnotation: NSObject, TKUICircleDisplayable, TKUISel

var coordinate: CLLocationCoordinate2D
var title: String?
var subtitle: String?

// MARK: TKUICircleDisplayable

Expand Down

0 comments on commit 1f41ebf

Please sign in to comment.