HillList

public struct HillList

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 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:

  • The classification of hills in this list.

    Declaration

    Swift

    public let classification: Classification
  • The geographical regions covered by this list.

    Declaration

    Swift

    public let regions: Set<Region>
  • The flag used by the app for this list.

    Declaration

    Swift

    public let flag: Flag
  • An enumeration of hill classifications.

    Descriptions of the case values are taken from the database notes of the Database of British and Irish Hills (DoBIH).

    Note

    the raw value of each case is its unique ID of the classification in the DoBIH, with the exception of Classification.nineHundred which is not present in that database.
    See more

    Declaration

    Swift

    public enum Classification: String
  • An enumeration of geographical regions within Britain and Ireland to which hill lists can belong.

    Note

    the raw value of each case is the reference letter used by the Database of British and Irish Hills (DoBIH) for the region.
    See more

    Declaration

    Swift

    public enum Region: String
  • An enumeration of flags used alongside list names in the app’s view of tracked lists.

    See more

    Declaration

    Swift

    public enum Flag