Structs
The following structs are available globally.
-
Declaration
Swift
public struct Ascent
-
A type representing a combination of backup mode and backup destination to specify how backups are created and where they should be stored.
See moreDeclaration
Swift
public struct BackupConfiguration
-
A type representing a set of contact details used for sharing data from the app.
See moreDeclaration
Swift
public struct ContactDetailsConfiguration
-
A type that represents all recorded ascents of a single hill.
See moreDeclaration
Swift
public struct AscendedHill
-
A type that represents a list of hills that can be tracked by the app. In keeping with the way the app presents lists, this type has properties to store:
- the
HillList.Classification
of hills within the list (e.g. Dewey); - the
HillList.Region
s covered by the list (e.g. England, Isle of Man & Wales); - the
HillList.Flag
displayed alongside the list’s name (e.g. United Kingdom).
The hills tracked by each list are generally straightforward to determine based on lookup of classification and regions in the database of British and Irish hills (DoBIH). However, the app takes an arguably non-obvious approach when it comes to Ireland and Northern Ireland. For any
HillList
:- if
HillList.Region.ireland
is in itsregions
set:- if its
flag
isHillList.Flag.ireland
then only hills in the Republic of Ireland are included; - if its
flag
isHillList.Flag.northernIreland
then hills in both the Republic of Ireland and Northern Ireland are included; - if its
flag
isHillList.Flag.unitedKingdom
then only hills in Northern Ireland are included.
- if its
Declaration
Swift
public struct HillList
- the
-
A type representing user location data. Initially a default location in Fort William is set but the user can specify a location or use their iOS device’s location.
See moreDeclaration
Swift
public struct LocationConfiguration
-
A type representing a combination of map vendor and map style to specify a mapping implementation for use in map-based views.
See moreDeclaration
Swift
public struct MapViewConfiguration
-
A type representing miscellaneous app configuration values.
See moreDeclaration
Swift
public struct MiscellaneousConfiguration
-
A type that stores information on how various items should be sorted for viewing.
See moreDeclaration
Swift
public struct SortingConfigurations
-
A type representing the units of measurement chosen for presenting values.
See moreDeclaration
Swift
public struct UnitsConfiguration