mirror of
https://github.com/phranck/TUIkit.git
synced 2026-06-20 09:54:37 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user