We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3416d9 commit 82019abCopy full SHA for 82019ab
Classes/GPXEmail.swift
@@ -22,6 +22,9 @@ open class GPXEmail: GPXElement {
22
/// Domain refers to the back part of the email address, after the **@**
23
public var domain: String?
24
25
+ /// Full email as a string.
26
+ public var fullAddress: String?
27
+
28
// MARK:- Instance
29
30
public required init() {
@@ -53,6 +56,11 @@ open class GPXEmail: GPXElement {
53
56
init(dictionary: [String : String]) {
54
57
self.emailID = dictionary["id"]
55
58
self.domain = dictionary["domain"]
59
60
+ guard let id = dictionary["id"] else { return }
61
+ guard let domain = dictionary["domain"] else { return }
62
+ self.fullAddress = id + "@" + domain
63
64
}
65
66
// MARK:- Tag
0 commit comments