skip
skip copied to clipboard
Views that are nested within another type do not display in SkipFuse
If I nest a View inside another type and reference it using its qualified name, everything works as expected on iOS. However, on Android, the screen is blank, and there's no useful output in adb logcat. No crash or error just no UI displayed.
Steps to Reproduce:
- Create a new Skip app.
- Replace the contents of
ContentView.swiftwith the following:
enum Foo {
struct ContentView: View {
var body: some View {
Text("Hello from Foo.ContentView")
}
}
}
- Update the main app to reference the nested view:
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
Foo.ContentView()
}
}
}
- Run the app on Android.
Expected Behavior:
The Hello Skipper! should render normally on Android, just like it does on iOS.
Actual Behavior:
A blank screen is shown on Android. No errors or crashes are reported in adb logcat.
Additional Info:
- Skip version: 1.6.3
- Android device/emulator: "Medium Phone API 36"
Same thing here.
Attaching a ZIP with a reproducible build: still happening as of Skip 1.6.27.
Download skip-async-view.zip and open Xcode: then in SkipAsyncViewRootView switch between:
ListView.AsyncFailure: A View defined in an extension → does not work.ListView.AsyncSuccess_1: A nested View defined inside the main View declaration → worksListViewAsyncSuccess_2: No nested view → works