I've seen people using AttributedString and .link to link to something, but I need it to run a function, not open a browser link. I want something like this in SwiftUI, with wrapping, etc. Terms of service agreement (this image was made with HTML)
I tried buttons, but that results in
HStack {
Text("By clicking continue you agree to our ")
Button("Terms Of Service") {}
Text(" and our ")
Button("Privacy Policy") {}
}
Awful Looking TOS notification: