Global Variables
The following global variables are available globally.
-
Number of meters in 1 mile (mi)
Declaration
Swift
let kMetersPerMile: Double -
Number of meters in 1 kilometer (km)
Declaration
Swift
let kMetersPerKilometer: Double -
Number of meters in 1 feet (ft)
Declaration
Swift
let kMetersPerFeet: Double -
Number of kilometers per hour in 1 meter per second To convert m/s -> km/h
Declaration
Swift
let kKilometersPerHourInOneMeterPerSecond: Double -
Number of miles per hour in 1 meter per second To convert m/s -> mph
Declaration
Swift
let kMilesPerHourInOneMeterPerSecond: Double -
GPX File extension
Declaration
Swift
let kFileExt: [String] -
Text displayed when there are no GPX files in the folder.
Declaration
Swift
let kNoFiles: String -
GPX creator identifier. Used on generated files identify this app created them.
Declaration
Swift
let kGPXCreatorString: String -
GPX creator identifier. Used on generated files identify this app created them.
-
Key on Defaults for the Tile Server integer.
Declaration
Swift
let kDefaultsKeyTileServerInt: String -
Key on Defaults for the use cache setting.
Declaration
Swift
let kDefaultsKeyUseCache: String -
Key on Defaults for the use of imperial units.
Declaration
Swift
let kDefaultsKeyUseImperial: String -
Key on Defaults for the current selected activity type.
Declaration
Swift
let kDefaultsKeyActivityType: String -
Key on Defaults for the current date format..
Declaration
Swift
let kDefaultsKeyDateFormat: String -
Key on Defaults for the current input date format
Declaration
Swift
let kDefaultsKeyDateFormatInput: String -
Key on Defaults for the current selected date format preset cell index.
Declaration
Swift
let kDefaultsKeyDateFormatPreset: String -
Key on Defaults for the current selected date format, to use UTC time or not..
Declaration
Swift
let kDefaultsKeyDateFormatUseUTC: String -
Key on Defaults for the current selected date format, to use local Locale or
en_US_POSIXDeclaration
Swift
let kDefaultsKeyDateFormatUseEN: String -
Key on Defaults for the folder where GPX files are store,
nilmeans default folderDeclaration
Swift
let kDefaultsKeyGPXFilesFolder: String -
Units Section Id in PreferencesTableViewController
Declaration
Swift
let kUnitsSection: Int -
Cache Section Id in PreferencesTableViewController
Declaration
Swift
let kCacheSection: Int -
Map Source Section Id in PreferencesTableViewController
Declaration
Swift
let kMapSourceSection: Int -
Activity Type Section Id in PreferencesTableViewController
Declaration
Swift
let kActivityTypeSection: Int -
Default Name Section Id in PreferencesTableViewController
Declaration
Swift
let kDefaultNameSection: Int -
GPX Files Location Section Id in PreferencesTableViewController
Declaration
Swift
let kGPXFilesLocationSection: Int -
Cell Id of the Use Imperial units in UnitsSection
Declaration
Swift
let kUseImperialUnitsCell: Int -
Cell Id for Use offline cache in CacheSection of PreferencesTableViewController
Declaration
Swift
let kUseOfflineCacheCell: Int -
Cell Id for Clear cache in CacheSection of PreferencesTableViewController
Declaration
Swift
let kClearCacheCell: Int -
Purple color for button background
Declaration
Swift
let kPurpleButtonBackgroundColor: UIColor -
Green color for button background
Declaration
Swift
let kGreenButtonBackgroundColor: UIColor -
Red color for button background
Declaration
Swift
let kRedButtonBackgroundColor: UIColor -
Blue color for button background
Declaration
Swift
let kBlueButtonBackgroundColor: UIColor -
Blue color for disabled button background
Declaration
Swift
let kDisabledBlueButtonBackgroundColor: UIColor -
Red color for disabled button background
Declaration
Swift
let kDisabledRedButtonBackgroundColor: UIColor -
White color for button background
Declaration
Swift
let kWhiteBackgroundColor: UIColor -
Delete Waypoint Button tag. Used in a waypoint bubble
Declaration
Swift
let kDeleteWaypointAccesoryButtonTag: Int -
Edit Waypoint Button tag. Used in a waypoint bubble.
Declaration
Swift
let kEditWaypointAccesoryButtonTag: Int -
Text to display when the system is not providing coordinates.
Declaration
Swift
let kNotGettingLocationText: String -
Text to display unknown accuracy
Declaration
Swift
let kUnknownAccuracyText: String -
Text to display unknown speed.
Declaration
Swift
let kUnknownSpeedText: String -
Size for small buttons
Declaration
Swift
let kButtonSmallSize: CGFloat -
Size for large buttons
Declaration
Swift
let kButtonLargeSize: CGFloat -
Separation between buttons
Declaration
Swift
let kButtonSeparation: CGFloat -
Upper limits threshold (in meters) on signal accuracy.
Declaration
Swift
let kSignalAccuracy6: Double -
Upper limits threshold (in meters) on signal accuracy.
Declaration
Swift
let kSignalAccuracy5: Double -
Upper limits threshold (in meters) on signal accuracy.
Declaration
Swift
let kSignalAccuracy4: Double -
Upper limits threshold (in meters) on signal accuracy.
Declaration
Swift
let kSignalAccuracy3: Double -
Upper limits threshold (in meters) on signal accuracy.
Declaration
Swift
let kSignalAccuracy2: Double -
Upper limits threshold (in meters) on signal accuracy.
Declaration
Swift
let kSignalAccuracy1: Double
View on GitHub
Global Variables Reference