From 942c3e84542e6abd945bbbb5fd66a6cf684baf7c Mon Sep 17 00:00:00 2001 From: wangdl Date: Wed, 27 May 2026 21:34:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(ios):=20=E4=BF=AE=E5=A4=8D=E4=B8=89?= =?UTF-8?q?=E5=85=83=E8=A1=A8=E8=BE=BE=E5=BC=8F=20Color/LinearGradient=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8D=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift index ab20f9b..f540001 100644 --- a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift +++ b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift @@ -29,7 +29,7 @@ struct CreateLibraryPage: View { Text("创建").font(.system(size: 14, weight: .bold)) } .foregroundColor(.white).frame(maxWidth: .infinity).frame(height: 52) - .background(name.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty ? Color.zxHairlineStrong : ZXGradient.ctaPurple) + .background(name.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty ? AnyView(Color.zxHairlineStrong) : AnyView(ZXGradient.ctaPurple)) .clipShape(RoundedRectangle(cornerRadius: 16)) } .disabled(isCreating || name.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)