GPXEmail

public final class GPXEmail : GPXElement, Codable

Used for handling email types

Email is seperated as two variables in order to prevent email harvesting. The GPX v1.1 schema requires that.

For example, an email of yourname@thisisawebsite.com, would have an id of ‘yourname’ and a domain of ‘thisisawebsite.com’.

  • Email ID refers to the front part of the email address, before the @

    Declaration

    Swift

    public var emailID: String?
  • Domain refers to the back part of the email address, after the @

    Declaration

    Swift

    public var domain: String?
  • Full email as a string.

    Declaration

    Swift

    public var fullAddress: String?
  • Declaration

    Swift

    public required init()
  • Initialize with a full email address.

    Seperation to id and domain will be done by this class itself.

    Declaration

    Swift

    public init(withFullEmailAddress email: String)

    Parameters

    email

    A full email address. (example: ‘name@domain.com’)