Skip to content

Commit

Permalink
Fix touch behavior in NumPad view
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Sep 29, 2023
1 parent 3fb0123 commit efa9d00
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct NumPadView: View {
}
.buttonStyle(NumPadButtonStyle())
.disabled(disabled)
.animation(.easeOut, value: digit)
.animation(.easeOut(duration: 0.2), value: digit)
}
}

Expand All @@ -68,10 +68,10 @@ struct NumPadView: View {
func makeBody(configuration: Configuration) -> some View {
configuration.label
.foregroundColor(isEnabled ? .themeLeah : .themeSteel20)
.background(configuration.isPressed ? Color.themeSteel20 : Color.clear)
.background(configuration.isPressed ? Color.themeSteel20 : Color.themeTyler)
.clipShape(Circle())
.overlay(Circle().stroke(Color.themeSteel20, lineWidth: .heightOneDp))
.animation(.easeOut, value: configuration.isPressed)
.animation(.easeOut(duration: 0.1), value: configuration.isPressed)
}
}
}

0 comments on commit efa9d00

Please sign in to comment.