fix: resolve type mismatch between thinMaterial and clear in ternary
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -136,7 +136,11 @@ struct AssistantSheetView: View {
|
|||||||
.foregroundStyle(selectedMode == index ? Color.textPrimary : Color.textTertiary)
|
.foregroundStyle(selectedMode == index ? Color.textPrimary : Color.textTertiary)
|
||||||
.padding(.horizontal, 16)
|
.padding(.horizontal, 16)
|
||||||
.padding(.vertical, 8)
|
.padding(.vertical, 8)
|
||||||
.background(selectedMode == index ? .thinMaterial : .clear)
|
.background {
|
||||||
|
if selectedMode == index {
|
||||||
|
Capsule().fill(.thinMaterial)
|
||||||
|
}
|
||||||
|
}
|
||||||
.clipShape(Capsule())
|
.clipShape(Capsule())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user