ios: decrease voice message progress bar width (#1450)

Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
JRoberts
2022-11-28 08:50:05 +00:00
committed by GitHub
co-authored by Evgeny Poberezkin
parent c102a884d1
commit 9949ac073f
2 changed files with 3 additions and 3 deletions
@@ -162,7 +162,7 @@ struct VoiceMessagePlayer: View {
.clipShape(Circle())
if recordingTime > 0 {
ProgressCircle(length: recordingTime, progress: $playbackTime)
.frame(width: 52, height: 52) // this + ProgressCircle lineWidth = background circle diameter
.frame(width: 53, height: 53) // this + ProgressCircle lineWidth = background circle diameter
}
}
}
@@ -176,7 +176,7 @@ struct VoiceMessagePlayer: View {
.trim(from: 0, to: ((progress ?? TimeInterval(0)) / length))
.stroke(
Color.accentColor,
style: StrokeStyle(lineWidth: 4)
style: StrokeStyle(lineWidth: 3)
)
.rotationEffect(.degrees(-90))
.animation(.linear, value: progress)
@@ -152,7 +152,7 @@ struct ComposeVoiceView: View {
ZStack {
Rectangle()
.fill(Color.accentColor)
.frame(width: min(CGFloat((progress ?? TimeInterval(0)) / length) * geometry.size.width, geometry.size.width), height: 4)
.frame(width: min(CGFloat((progress ?? TimeInterval(0)) / length) * geometry.size.width, geometry.size.width), height: 3)
.animation(.linear, value: progress)
}
.frame(height: ComposeVoiceView.previewHeight - 1, alignment: .bottom) // minus 1 is for the bottom padding