@@ -41,7 +41,7 @@ struct ContactInfoView: View {
41
41
}
42
42
43
43
var body : some View {
44
- if ContactHelper . contactHasPhone ( contact ) {
44
+ if contact . hasPhone ( ) {
45
45
VStack ( alignment: . leading, spacing: 3 ) {
46
46
Text ( " Phone " )
47
47
. font ( . caption)
@@ -52,7 +52,8 @@ struct ContactInfoView: View {
52
52
. foregroundStyle ( . blue)
53
53
}
54
54
}
55
- if ContactHelper . contactHasSecondaryPhone ( contact) {
55
+
56
+ if contact. hasSecondaryPhone ( ) {
56
57
VStack ( alignment: . leading, spacing: 3 ) {
57
58
Text ( " Secondary Phone " )
58
59
. font ( . caption)
@@ -63,7 +64,8 @@ struct ContactInfoView: View {
63
64
. foregroundStyle ( . blue)
64
65
}
65
66
}
66
- if ContactHelper . contactHasEmail ( contact) {
67
+
68
+ if contact. hasEmail ( ) {
67
69
VStack ( alignment: . leading, spacing: 3 ) {
68
70
Text ( " Email " )
69
71
. font ( . caption)
@@ -86,7 +88,8 @@ struct ContactInfoView: View {
86
88
Button ( " Cancel " , role: . cancel) { }
87
89
}
88
90
}
89
- if ContactHelper . contactHasSecondaryEmail ( contact) {
91
+
92
+ if contact. hasSecondaryEmail ( ) {
90
93
VStack ( alignment: . leading, spacing: 3 ) {
91
94
Text ( " Secondary Email " )
92
95
. font ( . caption)
@@ -99,7 +102,8 @@ struct ContactInfoView: View {
99
102
. foregroundStyle ( . blue)
100
103
}
101
104
}
102
- if ContactHelper . contactHasAddress ( contact) {
105
+
106
+ if contact. hasAddress ( ) {
103
107
VStack ( alignment: . leading, spacing: 3 ) {
104
108
Text ( " Address " )
105
109
. font ( . caption)
@@ -109,7 +113,8 @@ struct ContactInfoView: View {
109
113
. foregroundStyle ( . blue)
110
114
}
111
115
}
112
- if ContactHelper . contactHasSecondaryAddress ( contact) {
116
+
117
+ if contact. hasSecondaryAddress ( ) {
113
118
VStack ( alignment: . leading, spacing: 3 ) {
114
119
Text ( " Secondary Address " )
115
120
. font ( . caption)
@@ -119,7 +124,8 @@ struct ContactInfoView: View {
119
124
. foregroundStyle ( . blue)
120
125
}
121
126
}
122
- if ContactHelper . contactHasBirthday ( contact) {
127
+
128
+ if contact. hasBirthday ( ) {
123
129
VStack ( alignment: . leading, spacing: 3 ) {
124
130
Text ( " Birthday " )
125
131
. font ( . caption)
@@ -133,7 +139,8 @@ struct ContactInfoView: View {
133
139
}
134
140
}
135
141
}
136
- if ContactHelper . contactHasAnniversary ( contact) {
142
+
143
+ if contact. hasAnniversary ( ) {
137
144
VStack ( alignment: . leading, spacing: 3 ) {
138
145
Text ( " Anniversary " )
139
146
. font ( . caption)
0 commit comments