Signpost

public struct Signpost : Equatable

Contains information about the signpost for the GuidanceInstruction.

Lifecycle

  • Creates a signpost with the specified exit name, exit number and toward name.

    Throws

    If all properties are empty, the error InitializationError.incorrectInputs thrown.

    Declaration

    Swift

    public init(
        exitNumber: String,
        exitName: String,
        towardName: String
    ) throws

    Parameters

    exitName

    Signpost exit name.

    exitNumber

    Signpost exit number.

    towardName

    Signpost toward name.

Public

  • Signpost exit number.

    Declaration

    Swift

    public let exitNumber: String
  • Signpost exit name.

    Declaration

    Swift

    public let exitName: String
  • Signpost toward name.

    Declaration

    Swift

    public let towardName: String

Signpost.InitializationError

  • An error that occurs during the creation of the instance.

    See more

    Declaration

    Swift

    public enum InitializationError : Error