TKRegion

public class TKRegion : NSObject, Codable
  • Declaration

    Swift

    @objc
    public static let international: TKInternationalRegion
  • Declaration

    Swift

    @objc(TKRegionCity)
    public class City : NSObject, Codable, MKAnnotation
  • Declaration

    Swift

    @objc
    public let timeZone: TimeZone
  • Declaration

    Swift

    @objc
    public let name: String
  • Declaration

    Swift

    @objc
    public let cities: [City]
  • A list of all the mode identifiers this region supports. This is sorted as defined by the server, as the server groups and sorts them in a sensible manner and we want to preserve this sorting.

    Declaration

    Swift

    @objc
    public let modeIdentifiers: [String]
  • Declaration

    Swift

    @objc
    public let urls: [URL]
  • Declaration

    Swift

    @objc
    public lazy var polygon: MKPolygon { get set }
  • Warning

    Only use this for testing purposes, do not pass instances created this way to methods that needs a region. Instead use the various helpers in TKRegionManager instead.

    Declaration

    Swift

    public init(forTestingWithName name: String, modes: [String], cities: [City])
  • Declaration

    Swift

    @objc(containsCoordinate:)
    public func contains(_ coordinate: CLLocationCoordinate2D) -> Bool
  • Declaration

    Swift

    @objc(intersectsMapRect:)
    public func intersects(_ mapRect: MKMapRect) -> Bool

Codable