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

Tobias

02/21/2023, 4:01 PM
Hi guys, I just want to ask if this channel is also meant for discussion about "one Jetpack Compose UI for iOS and Android" aka Compose Multiplatform(?) questions. If yes, my first question is if anyone has created a Composable that wraps a
WKWebview
in a shared UI app. 🙂
l

Landry Norris

02/21/2023, 4:03 PM
Native views inside of compose are not complete yet. This feature is in active development right now. https://github.com/JetBrains/androidx/tree/dima-avdeev/uikit-interop-4
t

Tobias

02/21/2023, 4:05 PM
Ah ok. That means in short that my approach of am
actual / expect
implementation of a Webview in my shared UI app is currently not possible?
d

darkmoon_uk

02/21/2023, 9:07 PM
Correct, not possible with current builds.
l

Landry Norris

02/21/2023, 9:12 PM
You could technically use UIView.drawInHierarchy to create an Image and draw it to a Canvas, but it's probably better to wait until this is done officially.
d

darkmoon_uk

02/21/2023, 10:05 PM
'possible' in computing is nearly always relative 😁
l

Landry Norris

02/21/2023, 10:06 PM
I tried it once just to learn the internals of Compose and low-level UIKit interaction. Definitely not practical for real code.
d

darkmoon_uk

02/22/2023, 12:29 AM
Also regarding possibilities: • Dev: Can I declare my Dock Icon in Compose?Community: LOL, dream on! (probably) • @Landry Norris: Hold my beer
t

Tobias

02/22/2023, 8:08 AM
haha, thank you guys!
d

Dima Avdeev

02/22/2023, 11:23 AM
Wow, very interesting... 🤔 😄
68 Views