URLHandler
public protocol URLHandler
Conform to this protocol to handle links tapped in an AttributedLabel.
Use the URLHandlerEnvironmentKey or Environment.urlHandler property to override
the link handler in the environment.
-
Declaration
Swift
func onTap(url: URL)
View on GitHub
URLHandler Protocol Reference