A thin line separator that adapts its orientation to the parent stack.
Divider(): Component;
VStack([
Text("Above"),
Divider(),
Text("Below")
])
HStack([
Text("Left"),
Divider(),
Text("Right")
])
.frame({ height: 40 })
VStack({ spacing: 0 }, [
ForEach(items, (item, index) =>
Group([
Text(item.name).padding(12),
index < items.length - 1 ? Divider() : Empty()
])
)
])