杨锴
2024-09-14 6912d657ec6bb1db9683d5b5be8f0777f001ba11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CLVisitExtensions.swift - Copyright 2024 SwifterSwift
 
#if canImport(CoreLocation) && (os(iOS) || targetEnvironment(macCatalyst))
import CoreLocation
 
// MARK: - Properties
 
public extension CLVisit {
    /// SwifterSwift: Retrieves a visit's location.
    ///
    /// - Returns: CLLocation.
    var location: CLLocation {
        return CLLocation(latitude: coordinate.latitude, longitude: coordinate.longitude)
    }
}
 
#endif