|
|
|
@ -31,7 +31,7 @@ struct PlayersWithoutContactView: View { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let withoutPhones = players.filter({ $0.phoneNumber?.isEmpty == true || $0.phoneNumber == nil }) |
|
|
|
let withoutPhones = players.filter({ $0.phoneNumber?.isEmpty == true || $0.phoneNumber == nil || $0.phoneNumber?.isMobileNumber() == false }) |
|
|
|
DisclosureGroup { |
|
|
|
DisclosureGroup { |
|
|
|
ForEach(withoutPhones) { player in |
|
|
|
ForEach(withoutPhones) { player in |
|
|
|
NavigationLink { |
|
|
|
NavigationLink { |
|
|
|
@ -45,7 +45,7 @@ struct PlayersWithoutContactView: View { |
|
|
|
LabeledContent { |
|
|
|
LabeledContent { |
|
|
|
Text(withoutPhones.count.formatted()) |
|
|
|
Text(withoutPhones.count.formatted()) |
|
|
|
} label: { |
|
|
|
} label: { |
|
|
|
Text("Joueurs sans téléphone") |
|
|
|
Text("Joueurs sans téléphone portable") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} header: { |
|
|
|
} header: { |
|
|
|
|