Skip to content

Commit

Permalink
Fix invalid frame
Browse files Browse the repository at this point in the history
  • Loading branch information
lbrndnr committed Jul 10, 2023
1 parent 615fbcd commit 2bd47c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nuage/Views/WaveformSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct WaveformSlider<Value : BinaryFloatingPoint, MinValueLabel: View, MaxValue
.frame(width: barValue)
Rectangle()
.foregroundColor(barBackgroundColor)
.frame(width: geometry.size.width-barValue)
.frame(width: max(0, geometry.size.width-barValue))
}
.mask(WaveformView(with: waveform))
Circle()
Expand Down

0 comments on commit 2bd47c4

Please sign in to comment.