Skip to content

Commit

Permalink
Exclude MapKit compatibility on watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Nov 5, 2020
1 parent fae3361 commit b29d440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Polyline/Polyline.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Foundation
#if canImport(CoreLocation)
import CoreLocation
#endif
#if canImport(MapKit)
#if canImport(MapKit) && !os(watchOS)
import MapKit
#endif

Expand Down Expand Up @@ -61,7 +61,7 @@ public struct Polyline {
}
#endif

#if canImport(MapKit)
#if canImport(MapKit) && !os(watchOS)
/// Convert polyline to MKPolyline to use with MapKit (nil if polyline cannot be decoded)
@available(tvOS 9.2, *)
public var mkPolyline: MKPolyline? {
Expand Down

0 comments on commit b29d440

Please sign in to comment.