fix(ios): 修复另一个 LinearGradient/Color 三元表达式类型不匹配
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
2dac206b39
commit
e0998169a1
@ -220,7 +220,7 @@ struct AddKnowledgePage: View {
|
||||
Text("保存").font(.system(size: 14, weight: .bold))
|
||||
}
|
||||
.foregroundColor(.white).frame(maxWidth: .infinity).frame(height: 52)
|
||||
.background(canSave ? ZXGradient.ctaPurple : Color.zxHairlineStrong)
|
||||
.background(canSave ? AnyView(ZXGradient.ctaPurple) : AnyView(Color.zxHairlineStrong))
|
||||
.clipShape(RoundedRectangle(cornerRadius: 16))
|
||||
}
|
||||
.disabled(!canSave || isSaving)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user