GPXFileInfo
class GPXFileInfo : NSObject
A handy way of getting info of a GPX file.
It gets info like filename, modified date, filesize
-
file URL
Declaration
Swift
var fileURL: URL -
Last time the file was modified
Declaration
Swift
var modifiedDate: Date { get } -
modified date has a time ago string (for instance: 3 days ago)
Declaration
Swift
var modifiedDatetimeAgo: String { get } -
File size in bytes
Declaration
Swift
var fileSize: Int { get } -
File size as string in a more readable format (example: 10 KB)
Declaration
Swift
var fileSizeHumanised: String { get } -
The filename without extension
Declaration
Swift
var fileName: String { get } -
Initializes the object with the URL of the file to get info.
Declaration
Swift
init(fileURL: URL)Parameters
fileURLthe URL of the GPX file.
View on GitHub
GPXFileInfo Class Reference