How can you add clickable text in a SwiftUI Text() View?

I have the same issue as this stackoverflow link Please help me. I am currently working with iOS Deployment Target: 14.0. Thanks.

Answered by ththiep in 803024022

following this image, i want "11 Main St Windsor Address" can clickable and call a func

Accepted Answer

following this image, i want "11 Main St Windsor Address" can clickable and call a func

How can you add clickable text in a SwiftUI Text() View?
 
 
Q