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 ddba4a8 commit 4939467Copy full SHA for 4939467
WooCommerce/Classes/ViewRelated/Authentication/AccountCreationForm.swift
@@ -49,6 +49,7 @@ struct AccountCreationForm: View {
49
@ObservedObject private var viewModel: AccountCreationFormViewModel
50
51
@State private var isPerformingTask = false
52
+ @State private var tosURL: URL?
53
54
@FocusState private var focusedField: Field?
55
@@ -112,6 +113,10 @@ struct AccountCreationForm: View {
112
113
// Terms of Service link.
114
AttributedText(tosAttributedText)
115
.attributedTextLinkColor(Color(.textLink))
116
+ .environment(\.customOpenURL) { url in
117
+ tosURL = url
118
+ }
119
+ .safariSheet(url: $tosURL)
120
}
121
122
// CTA to submit the form.
0 commit comments