skiptools / skip-ui

SwiftUI for Android
https://skip.tools
GNU Lesser General Public License v3.0
129 stars 14 forks source link

Nesting Section renders empty view #13

Open pnewell opened 1 year ago

pnewell commented 1 year ago

Separating out a Form Section into its own view breaks something causing an empty view to display. Directly nesting the Section in the Form works fine.

Example:

public struct ContentView: View {
    public init() {
    }

    public var body: some View {
        Form {
            SectionView()
        }
    }
}

public struct SectionView: View {
    public init() {
    }

    public var body: some View {
        Section {
            HStack {
                Text("Text")
            }
        }
    }
}
Screenshot 2023-11-20 at 8 20 53 PM

This renders as follows in Android: