Code: Select all
var body: some View {
privacyPolicyLink
}
private func privacyPolicyLink(with url: URL) -> Text {
Text(.init("[privacy policy](\(url))"))
.underline()
.applyStyling() // applies fonts and foreground color
}
private var privacyPolicyURLView: Text {
textView(withDisplayText: "For more information, please see our")
+ privacyPolicyLink(with: url)
+ textView(withDisplayText: ".")
}
private func textView(withDisplayText text: String) -> Text {
Text(text)
.applyStyling() // applies fonts and foreground color
}
Ich erhalte einen Fehler, den keine Übereinstimmungen gefunden haben.let privacyPolicyLink = app.links["privacy policy"].firstMatch
privacyPolicyLink.tap()
[/code]
Ich erhalte einen ähnlichen Fehler, der nicht auf "Datenschutzrichtlinien" tippt: Keine Übereinstimmungen für die erste Abfrage -Übereinstimmungsequenz: Descendants Matching Typ Link -> Elemente, die Prädikat "Datenschutzrichtlinie" in Identifikatoren "in Eingabe -App -Element pid: 19868
p> p> p> pl. Sie.>