Skip to content

Commit 8dd2934

Browse files
authored
Merge branch 'main' into copilot/fix-2e46fe3c-0df2-4a19-9b0f-2658b291e409
2 parents 48acf4a + 3eff468 commit 8dd2934

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ Features
2525
**Set play progress** to highlight part of the waveform:
2626

2727
```swift
28-
let samplesToHighlight = self.waveform.totalSamples / 2
29-
self.waveform.highlightedSamples = 0 ..< samplesToHighlight
28+
self.waveform.highlightedSamples = 0..<(self.waveform.totalSamples / 2)
3029
```
3130

3231
<p align="center">
@@ -36,7 +35,7 @@ self.waveform.highlightedSamples = 0 ..< samplesToHighlight
3635
**Zoom in** to show only part of the waveform, of course, zooming in will smoothly re-render to show progressively more detail:
3736

3837
```swift
39-
self.waveform.zoomSamples = 0 ..< (self.waveform.totalSamples / 4)
38+
self.waveform.zoomSamples = 0..<(self.waveform.totalSamples / 4)
4039
```
4140

4241
<p align="center">

Sources/FDWaveformView/FDWaveformView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ open class FDWaveformView: UIView {
106106
}
107107
}
108108

109-
/// The color of the highlighted waveform (see `progressSamples`
109+
/// The color of the highlighted waveform (see `highlightedSamples`
110110
@IBInspectable open var progressColor = UIColor.blue {
111111
didSet {
112112
highlightedImage.tintColor = progressColor

0 commit comments

Comments
 (0)