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")
}
}
}
}
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:
This renders as follows in Android: