How to use or replace 'UIViewControllerRepresentable' in SkipFuse. #562
Replies: 1 comment 1 reply
-
|
Can you elaborate some more on your setup? Skip doesn't impose any restrictions on the iOS side of the app: UIKit and SwiftUI will work exactly the same way as always, since Skip doesn't intermediate those libraries at all. It is only when you are building the Android side that you may encounter limitations, including that we don't have any support for UIViewController (or most other UIKit types). In these cases, you would indeed need to monitor lifecycle differently, ideally through the SwiftUI View's methods, but possibly by dropping down into Compose and implementing it in Kotlin (see the Compose Integration docs). You may also want to look at our WebView implementation, which demonstrates implementing a view that uses a I hope that helps. If I have misunderstood how your app or library is configured, please provide some more details and we can help find the best solution. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When building SkipTools with SkipFuse in
nativemode, if you're monitoring the lifecycle of aUIViewControllerusing SwiftUIUIViewControllerRepresentable, it appears that class is not supported by SkipTools.Therefore, it seems necessary to either use other SwiftUI classes or classes from SkipTools libraries, or use Jetpack Compose and utilize the class that replaces
UIViewController, monitoring that class withinComposeContent. Is there a better approach?Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions