From dfd9bcd79217973457f23da33809333882fbbe30 Mon Sep 17 00:00:00 2001 From: phranck Date: Mon, 9 Feb 2026 00:12:07 +0100 Subject: [PATCH] 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) --- docs/src/components/react/CodePreview.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/components/react/CodePreview.tsx b/docs/src/components/react/CodePreview.tsx index a0e611a..b7e5e22 100644 --- a/docs/src/components/react/CodePreview.tsx +++ b/docs/src/components/react/CodePreview.tsx @@ -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 {