Views that are nested within another type do not display in SkipFuse
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.2k
- Forks
- 106
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 1
Description
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"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ContentView.swift and the main app entry point, then run the nested Foo.ContentView example on Android and compare it with iOS. Use adb logcat while reproducing the blank screen; it is done when the nested view renders on Android as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100