TcxFile
@available(swift 4.0)
public struct TcxFile
TCX File
-
Training Center Database
Declaration
Swift
private(set) public var database: TrainingCenterDatabase
-
Undocumented
Declaration
Swift
public init(database: TrainingCenterDatabase)
-
Encode TcxFile
Throws
EncodingErrorDeclaration
Swift
public func encode(prettyPrinted: Bool = true) throws -> Data
Parameters
prettyPrinted
Should Pretty Print TCX Data
Return Value
TCX Data
-
Decodes TXC Data into a TrainingCenterDatabase
Throws
DecodingErrorDeclaration
Swift
public static func decode(from data: Data) throws -> TcxFile
Parameters
data
TCX File Data
Return Value
Optional TrainingCenterDatabase