Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ios/MobRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,12 @@ struct MobNodeView: View {
VStack(alignment: .leading, spacing: 0) {
ForEach(Array(node.childNodes.enumerated()), id: \.offset) { _, child in MobNodeView(node: child) }
}
.frame(maxWidth: .infinity, alignment: .leading)
// fill_height: true lets a column flex to fill its parent so children
// with Spacer() or fill_height of their own can pin to the bottom.
// Without maxHeight the VStack hugs its content vertically and a
// trailing footer sits directly below the last child instead of the
// parent's bottom edge.
.frame(maxWidth: .infinity, maxHeight: node.fillHeight ? .infinity : nil, alignment: .topLeading)
.padding(node.paddingEdgeInsets)
.background(node.backgroundColor.map { Color($0) } ?? Color.clear)
.ifLet(node.onTap) { view, tap in
Expand Down