fun Link(title: String, destination: String, modifier: Modifier = Modifier)Overview
Link("Terms of service", destination = "https://example.com/terms")This is the Kotlin form of SwiftUI Link.init(_:destination:): SwiftUI documentation. In Swift it reads:
nonisolated init<S>(_ title: S, destination: URL) where S : StringProtocolTopics
Creating a Link
fun Link(destination: String, modifier: Modifier = Modifier, content: @Composable () -> Unit)
fun Link(title: String, destination: String, modifier: Modifier = Modifier)
fun Link(titleResource: LocalizedKey, destination: String, modifier: Modifier = Modifier)
fun Link(titleKey: LocalizedKey? = null, destination: String? = null, modifier: Modifier = Modifier)
Methods
fun LinkDestination(titleKey: LocalizedKey, destination: String, modifier: Modifier = Modifier)