TripKitAPI
The following declarations are provided by module TripKitAPI.
-
Undocumented
Declaration
Swift
public typealias TKImage = UIImage
-
Top-Level Namespace for model structs that directly correspond to the TripGo API.
See moreDeclaration
Swift
public struct TKAPI
-
Undocumented
Declaration
Swift
public typealias TKColor = UIColor
-
Case-less enum just to create a namespace
See moreDeclaration
Swift
public enum TKBooking
-
Information to identify and display a transport mode. Kind of like the big sibling of a mode identifier string.
See moreDeclaration
Swift
public class TKModeInfo : NSObject, Codable
From TripKitUI:extension TKModeInfo: NSSecureCoding
extension TKModeInfo: TKUIModePickerItem
extension TKModeInfo: Comparable
-
Undocumented
See moreDeclaration
Swift
From TripKit:public struct TKRoutingQuery<Context>
extension TKRoutingQuery: TKRouterRequestable where Context == NSManagedObjectContext
-
Undocumented
See moreDeclaration
Swift
public struct TKAPIConfig : Equatable
extension TKAPIConfig: Codable
-
Undocumented
See moreDeclaration
Swift
public enum TKTransportMode : String, CaseIterable
-
Undocumented
Declaration
Swift
public typealias TKFont = UIFont
-
-
-
-
A
TKLogger
is used byTKLog
to perform the outputting and processing of log statements.A default
See moreTKConsoleLogger
is provided.Declaration
Swift
public protocol TKLogger
-
Declaration
Swift
extension Array
-
Declaration
Swift
extension JSONEncoder
-
Declaration
Swift
extension JSONDecoder
-
Declaration
Swift
extension Date
-
Declaration
Swift
extension NSError
-
Declaration
Swift
extension UserDefaults
-
Undocumented
See moreDeclaration
Swift
public struct TKBookingData : Codable, Hashable
-
Undocumented
See moreDeclaration
Swift
public enum TKErrorCode : Int
-
Undocumented
Declaration
Swift
public class TKServerError : TKError, @unchecked Sendable
-
Undocumented
See moreDeclaration
Swift
public class TKError : NSError, @unchecked Sendable
-
This class encapsulates information about the money cost of a trip segment.
See moreDeclaration
Swift
public class TKLocalCost : NSObject, Codable
-
Undocumented
See moreDeclaration
Swift
public enum TKLocalCostAccuracy : String, Codable
-
This class encapsulates information about the map tiles of a trip segment.
See moreDeclaration
-
Undocumented
See moreDeclaration
Swift
public class TKMiniInstruction : NSObject, Codable, NSSecureCoding
-
Undocumented
See moreDeclaration
Swift
public enum TKRegionParserError : Error
-
Undocumented
See moreDeclaration
Swift
public class TKRegionCity : NSObject, Codable
-
Undocumented
See moreDeclaration
Swift
@frozen public enum TKRoutingQueryTime : Equatable
-
Undocumented
See moreDeclaration
Swift
public enum TKTripCostType : Int, Codable
-
Undocumented
See moreDeclaration
Swift
public enum TKTurnByTurnMode : String, Codable
-
Undocumented
See moreDeclaration
Swift
public struct Point : Hashable
extension Point: Equatable
-
Declaration
Swift
extension CLLocationCoordinate2D
-
Undocumented
See moreDeclaration
Swift
public struct Polygon
-
Declaration
Swift
From TripKitAPI: -
Provides a default value for missing
Decodable
data.
See moreDefaultCodableStrategy
provides a generic strategy type that theDefaultCodable
property wrapper can use to provide a reasonable default value for missing Decodable data.Declaration
Swift
public protocol DefaultCodableStrategy
-
Decodes values with a reasonable default value
See more@Defaultable
attempts to decode a value and falls back to a default type provided by the genericDefaultCodableStrategy
.Declaration
Swift
@propertyWrapper public struct DefaultCodable<Default> where Default : DefaultCodableStrategy
extension DefaultCodable: Decodable where Default.DefaultValue: Decodable
extension DefaultCodable: Encodable where Default.DefaultValue: Encodable
extension DefaultCodable: Equatable where Default.DefaultValue: Equatable
extension DefaultCodable: Hashable where Default.DefaultValue: Hashable
-
Undocumented
Declaration
Swift
public protocol BoolCodableStrategy : DefaultCodableStrategy where Self.DefaultValue == Bool
-
Declaration
Swift
public extension KeyedDecodingContainer
-
Undocumented
See moreDeclaration
Swift
public struct DefaultEmptyArrayStrategy<T> : DefaultCodableStrategy where T : Decodable
-
Decodes Arrays returning an empty array instead of nil if applicable
@DefaultEmptyArray
decodes Arrays and returns an empty array instead of nil if the Decoder is unable to decode the container.Declaration
Swift
public typealias DefaultEmptyArray<T> = DefaultCodable<DefaultEmptyArrayStrategy<T>> where T : Decodable
-
Undocumented
See moreDeclaration
Swift
public struct DefaultFalseStrategy : BoolCodableStrategy
-
Decodes Bools defaulting to
false
if applicable@DefaultFalse
decodes Bools and defaults the value to false if the Decoder is unable to decode the value.Declaration
Swift
public typealias DefaultFalse = DefaultCodable<DefaultFalseStrategy>
-
Undocumented
See moreDeclaration
Swift
public struct DefaultLossyArray<T> : DefaultCodableStrategy where T : Decodable, T : Encodable
-
Undocumented
Declaration
Swift
public typealias EmptyLossyArray<T> = DefaultCodable<DefaultLossyArray<T>> where T : Decodable, T : Encodable
-
Undocumented
See moreDeclaration
Swift
public struct UnknownNilStrategy<T> : DefaultCodableStrategy where T : Decodable, T : Encodable
-
Undocumented
Declaration
Swift
public typealias UnknownNil<T> = DefaultCodable<UnknownNilStrategy<T>> where T : Decodable, T : Encodable
-
Undocumented
See moreDeclaration
Swift
public struct DefaultTrueStrategy : BoolCodableStrategy
-
Decodes Bools defaulting to
true
if applicable@DefaultTrue
decodes Bools and defaults the value to true if the Decoder is unable to decode the value.Declaration
Swift
public typealias DefaultTrue = DefaultCodable<DefaultTrueStrategy>
-
Undocumented
See moreDeclaration
Swift
@propertyWrapper public struct ISO8601
extension ISO8601: Decodable
extension ISO8601: Encodable
extension ISO8601: Equatable
extension ISO8601: Hashable
-
Undocumented
See moreDeclaration
Swift
@propertyWrapper public struct OptionalISO8601
extension OptionalISO8601: Decodable
extension OptionalISO8601: Encodable
extension OptionalISO8601: Equatable
extension OptionalISO8601: Hashable
-
Undocumented
See moreDeclaration
Swift
@propertyWrapper public struct ISO8601OrSecondsSince1970
extension ISO8601OrSecondsSince1970: Decodable
extension ISO8601OrSecondsSince1970: Encodable
extension ISO8601OrSecondsSince1970: Equatable
extension ISO8601OrSecondsSince1970: Hashable
-
Undocumented
See moreDeclaration
Swift
@propertyWrapper public struct OptionalISO8601OrSecondsSince1970
extension OptionalISO8601OrSecondsSince1970: Decodable
extension OptionalISO8601OrSecondsSince1970: Encodable
extension OptionalISO8601OrSecondsSince1970: Equatable
extension OptionalISO8601OrSecondsSince1970: Hashable
-
Decodes Arrays filtering invalid values if applicable
@LossyArray
decodes Arrays and filters invalid values if the Decoder is unable to decode the value.This is useful if the Array is intended to contain non-optional types.
See moreDeclaration
Swift
@propertyWrapper public struct LossyArray<T>
extension LossyArray: Decodable where T: Decodable
extension LossyArray: Encodable where T: Encodable
extension LossyArray: Equatable where T: Equatable
extension LossyArray: Hashable where T: Hashable