Fix: Update landing page example code to current API

- Change foregroundColor to foregroundStyle
- Remove .frame(height:) from List (not idiomatic)
- Fix syntax highlighter group indices (previous commit)
This commit is contained in:
phranck
2026-02-09 00:12:07 +01:00
parent 0e693145da
commit dfd9bcd792
+1 -2
View File
@@ -13,7 +13,7 @@ struct MyApp: App {
VStack {
Text("Welcome to TUIkit")
.bold()
.foregroundColor(.cyan)
.foregroundStyle(.cyan)
HStack {
Button("Increment") { count += 1 }
@@ -27,7 +27,6 @@ struct MyApp: App {
Text(item)
}
}
.frame(height: 5)
}
.padding()
.appHeader {