wip: Can't seem to get the node modifiers working properly.

This commit is contained in:
2024-12-03 15:40:07 -05:00
parent 8658035d51
commit f73ded3314
6 changed files with 403 additions and 140 deletions

View File

@@ -12,20 +12,24 @@ let setupRainbow: Bool = {
func testGroup() {
#expect(setupRainbow)
let group = Group {
Label { "Foo:" }.color(.blue)
Label { "Foo:" }
"Bar"
"Baz"
Note { "Bang:" } content: { "boom" }
if setupRainbow {
Label("Hello, rainbow").color(.blue)
} else {
Label("No color for you!").color(.green)
Label("No color for you!").color(.red)
}
}.color(.green)
}
.color(.green)
.style(.italic)
.labelStyle(color: .blue, styles: .bold)
print(type(of: group))
print(group.render())
let note = Note { "Bang:" } content: { "boom" }
print(note.render())
print(type(of: note.label))
// let note = Note { "Bang:" } content: { "boom" }
// print(note.render())
// print(type(of: note.label))
}