skiptools / skiptools/skip

Views that are nested within another type do not display in SkipFuse

Open
#454 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fuse
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:

  1. Create a new Skip app.
  2. Replace the contents of ContentView.swift with the following:
enum Foo {
    struct ContentView: View {
        var body: some View {
            Text("Hello from Foo.ContentView")
        }
    }
}
  1. Update the main app to reference the nested view:
@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            Foo.ContentView()
        }
    }
}
  1. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.