mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Fix bug in InlineTextButton
This commit is contained in:
@@ -69,8 +69,13 @@ struct InlineTextButton: View {
|
||||
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
components.reduce(Text("")) { lastValue, component in
|
||||
lastValue + Text(component.string)
|
||||
.foregroundColor(component.isTinted ? .accentColor.opacity(configuration.isPressed ? 0.2 : 1) : nil)
|
||||
var text: Text = .init(component.string)
|
||||
|
||||
if component.isTinted {
|
||||
text = text.foregroundColor(.accentColor.opacity(configuration.isPressed ? 0.2 : 1))
|
||||
}
|
||||
|
||||
return lastValue + text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user