We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d8033 commit 5814189Copy full SHA for 5814189
Sources/DSWaveformImage/WaveformImageDrawer.swift
@@ -142,8 +142,8 @@ private extension WaveformImageDrawer {
142
let path = CGMutablePath()
143
var maxAmplitude: CGFloat = 0.0 // we know 1 is our max in normalized data, but we keep it 'generic'
144
145
- for (y, sample) in samples.enumerated() {
146
- var x = y + lastOffset
+ for (index, sample) in samples.enumerated() {
+ var x = index + lastOffset
147
if case .striped = configuration.style, x % Int(configuration.scale) != 0 || x % stripeBucket(configuration) != 0 {
148
// skip sub-pixels - any x value not scale aligned
149
// skip any point that is not a multiple of our bucket width (width + spacing)
0 commit comments