https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
t

tz311

12/14/2023, 2:35 PM
Hi, is there a way to open a url on safari?
k

Konstantin Tskhovrebov

12/14/2023, 2:39 PM
Copy code
fun openUrl(url: String?) {
    val nsUrl = url?.let { NSURL.URLWithString(it) } ?: return
    UIApplication.sharedApplication.openURL(nsUrl)
}
the full example see here: https://terrakok.github.io/Compose-Multiplatform-Wizard/
t

tz311

12/14/2023, 2:42 PM
thank you
5 Views