Bläddra i källkod

Use the branded Your Content logo in the grammar checker card header.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 1 månad sedan
förälder
incheckning
fd87a94204

+ 21 - 0
gramora/Resources/Assets.xcassets/YourContentLogo.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "filename" : "YourContentLogo.png",
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
gramora/Resources/Assets.xcassets/YourContentLogo.imageset/YourContentLogo.png


+ 5 - 9
gramora/Views/GrammarCheckerView.swift

@@ -60,15 +60,11 @@ struct GrammarCheckerView: View {
 
     private var contentCard: some View {
         VStack(alignment: .leading, spacing: 16) {
-            HStack(spacing: 8) {
-                Image(systemName: "doc.text.magnifyingglass")
-                    .font(.system(size: 14))
-                    .foregroundStyle(AppTheme.teal)
-
-                Text("Your Content")
-                    .font(.system(size: 14, weight: .semibold))
-                    .foregroundStyle(AppTheme.textPrimary)
-            }
+            Image("YourContentLogo")
+                .resizable()
+                .scaledToFit()
+                .frame(height: 48)
+                .accessibilityLabel("Your Content")
 
             ZStack(alignment: .bottomTrailing) {
                 ThinCaretTextEditor(text: $viewModel.text)