Skip to content

Commit e805bcd

Browse files
committed
Wording updates
1 parent 14eb0a9 commit e805bcd

6 files changed

Lines changed: 39 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Released on 2017-05-31.
4848

4949
#### Changed
5050
- Now using ranges in the API where appropriate
51-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
51+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
5252
[#76](https://github.com/fulldecent/FDWaveformView/issues/86).
5353

5454
#### Fixed
@@ -65,7 +65,7 @@ Released on 2017-05-03.
6565
#### Added
6666
- Improved accuracy of waveform rendering
6767
- Added by [Kip Nicol](https://github.com/ospr)
68-
- Added support for rendering waveform images outside of a view (See `FDWaveformRenderOperation`)
68+
- Added support for rendering waveform images outside of view (See `FDWaveformRenderOperation`)
6969
- Added by [Kip Nicol](https://github.com/ospr)
7070
- Added support for rendering linear waveforms
7171
- Added by [Kip Nicol](https://github.com/ospr)
@@ -94,7 +94,7 @@ Released on 2017-04-15.
9494
#### Added
9595
- Improved example app to include more options
9696
- Added by [William Entriken](https://github.com/fulldecent)
97-
- Allow animation for changes to zoom
97+
- Allowed animation for changes to zoom
9898
- Added by [William Entriken](https://github.com/fulldecent)
9999

100100
#### Fixed
@@ -103,7 +103,7 @@ Released on 2017-04-15.
103103
- Fixed waveform rendering for large audio files
104104
- Added by [Kip Nicol](https://github.com/ospr)
105105
- Fixed crash with quick load time
106-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
106+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
107107
[#76](https://github.com/fulldecent/FDWaveformView/issues/76).
108108

109109
---
@@ -112,9 +112,9 @@ Released on 2017-04-15.
112112
Released on 2017-02-16.
113113

114114
#### Added
115-
- Allow scrubbing independantly of scrolling
115+
- Allowed scrubbing independantly of scrolling
116116
- Added by [Doug Earnshaw](https://github.com/pixlwave)
117-
- Tidy up Swift 3.0 conversion, remove some forced unwraps & generally make more Swifty
117+
- Tidied up Swift 3.0 conversion, removed some forced unwraps & generally made more swifty
118118
- Added by [Doug Earnshaw](https://github.com/pixlwave)
119119

120120
---
@@ -125,7 +125,7 @@ Released on 2016-09-27.
125125
#### Added
126126
- Automated CocoaPods Quality Indexes testing
127127
- Added by [Hayden Holligan](https://github.com/haydenholligan)
128-
- Use GPU to process waveforms
128+
- Used GPU to process waveforms
129129
- Added by [Hayden Holligan](https://github.com/haydenholligan)
130130

131131
---
@@ -135,7 +135,7 @@ Released on 2016-09-02.
135135

136136
#### Fixed
137137
- Corrected rendering, fixed typo
138-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
138+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
139139
[#62](https://github.com/fulldecent/FDWaveformView/issues/62).
140140

141141
---
@@ -145,7 +145,7 @@ Released on 2016-08-02.
145145

146146
#### Fixed
147147
- Fixed Podspec for Swift files
148-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
148+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
149149
[#61](https://github.com/fulldecent/FDWaveformView/issues/61).
150150

151151
---
@@ -155,16 +155,16 @@ Released on 2016-06-27.
155155

156156
#### Added
157157
- Full API documentation
158-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
158+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
159159
[#53](https://github.com/fulldecent/FDWaveformView/issues/53).
160160
- Release process documentation
161-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
161+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
162162
[#57](https://github.com/fulldecent/FDWaveformView/issues/57).
163-
- Change Log
164-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
163+
- Changed Log
164+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
165165
[#54](https://github.com/fulldecent/FDWaveformView/issues/54).
166166
- Swift Package Manager support
167-
- Added by [William Entriken](https://github.com/fulldecent) in Regards to Issue
167+
- Added by [William Entriken](https://github.com/fulldecent) in regards to issue
168168
[#52](https://github.com/fulldecent/FDWaveformView/issues/52).
169169

170170
---
@@ -182,11 +182,11 @@ Released on 2016-04-10.
182182
Released on 2016-03-29.
183183

184184
#### Added
185-
- Separate scrolling and pinching options
185+
- Separated scrolling and pinching options
186186
- Added by [Rudy Mutter](https://github.com/rmutter)
187187

188188
#### Updated
189-
- Uses recommended CocoPods project format
189+
- Used recommended CocoPods project format
190190
- Added by [William Entriken](https://github.com/fulldecent)
191191

192192
#### Fixed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ self.waveform.progressSamples = self.waveform.totalSamples / 2
3838
<img src="https://i.imgur.com/fRrHiRP.png" width=250>
3939
</p>
4040

41-
**Zoom in** to show only part of the waveform, of course, zooming in will smoothly rerender to show progressively more detail:
41+
**Zoom in** to show only part of the waveform, of course, zooming in will smoothly re-render to show progressively more detail:
4242

4343
```swift
4444
self.waveform.zoomStartSamples = 0
@@ -87,4 +87,4 @@ Add this to your project using Swift Package Manager. In Xcode that is simply: F
8787

8888
## Contributing
8989

90-
This project's layout is based on https://github.com/fulldecent/swift4-module-template If you would like to change the layout, please change that project FIRST. Also you may appreciate that project has "recipes" -- you don't just change code you explain why you are doing things. As a maintainer this makes my job MUCH simpler. In a similar respect, if you are introducing non-minor changes, it will be VERY helpful if you could please reference to another project (like AlamoFire) that has seen and discussed the types of design challenges you are touching.) Thanks again and we all really do appreciate your contributions.
90+
This project's layout is based on https://github.com/fulldecent/swift4-module-template If you would like to change the layout, please change that project FIRST. Also you may appreciate that project has "recipes" -- you don't just change code, you also explain why you are doing things. As a maintainer this makes my job MUCH simpler. In a similar respect, if you are introducing non-minor changes, it will be VERY helpful if you could please reference to another project (like AlamoFire) that has seen and discussed the types of design challenges you are touching.) Thanks again and we all really do appreciate your contributions.

Sources/FDWaveformView/FDWaveformRenderOperation.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ final public class FDWaveformRenderOperation: Operation {
141141
finish(with: image)
142142
}
143143

144-
/// Read the asset and create create a lower resolution set of samples
144+
/// Read the asset and create a lower resolution set of samples
145145
func sliceAsset(withRange slice: CountableRange<Int>, andDownsampleTo targetSamples: Int) -> (samples: [CGFloat], sampleMax: CGFloat)? {
146146
guard !isCancelled else { return nil }
147147

@@ -181,7 +181,7 @@ final public class FDWaveformRenderOperation: Operation {
181181

182182
// 16-bit samples
183183
reader.startReading()
184-
defer { reader.cancelReading() } // Cancel reading if we exit early if operation is cancelled
184+
defer { reader.cancelReading() } // Cancel reading if we exit early or if operation is cancelled
185185

186186
while reader.status == .reading {
187187
guard !isCancelled else { return nil }
@@ -213,7 +213,7 @@ final public class FDWaveformRenderOperation: Operation {
213213
//print("Status: \(reader.status)")
214214
}
215215

216-
// Process the remaining samples at the end which didn't fit into samplesPerPixel
216+
// Process the remaining samples that did not fit into samplesPerPixel at the end
217217
let samplesToProcess = sampleBuffer.count / MemoryLayout<Int16>.size
218218
if samplesToProcess > 0 {
219219
guard !isCancelled else { return nil }
@@ -233,7 +233,7 @@ final public class FDWaveformRenderOperation: Operation {
233233
}
234234

235235
// if (reader.status == AVAssetReaderStatusFailed || reader.status == AVAssetReaderStatusUnknown)
236-
// Something went wrong. Handle it, or not depending on if you can get above to work
236+
// Something went wrong. Handle it or do not, depending on if you can get above to work
237237
if reader.status == .completed || true{
238238
return (outputSamples, sampleMax)
239239
} else {

Sources/FDWaveformView/FDWaveformView.swift

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,17 @@ open class FDWaveformView: UIView {
123123
/// If this portion is not available then a re-render will be performed
124124
private var horizontalBleedAllowed = 0.1 ... 3.0
125125

126-
/// The number of horizontal pixels to render per visible pixel on the screen (for antialiasing)
126+
/// The number of horizontal pixels to render per visible pixel on the screen (for anti-aliasing)
127127
private var horizontalOverdrawTarget = 3.0
128128

129-
/// The required number of horizontal pixels to render per visible pixel on the screen (for antialiasing)
129+
/// The required number of horizontal pixels to render per visible pixel on the screen (for anti-aliasing)
130130
/// If this number is not available then a re-render will be performed
131131
private var horizontalOverdrawAllowed = 1.5 ... 5.0
132132

133-
/// The number of vertical pixels to render per visible pixel on the screen (for antialiasing)
133+
/// The number of vertical pixels to render per visible pixel on the screen (for anti-aliasing)
134134
private var verticalOverdrawTarget = 2.0
135135

136-
/// The required number of vertical pixels to render per visible pixel on the screen (for antialiasing)
136+
/// The required number of vertical pixels to render per visible pixel on the screen (for anti-aliasing)
137137
/// If this number is not available then a re-render will be performed
138138
private var verticalOverdrawAllowed = 1.0 ... 3.0
139139

@@ -189,7 +189,7 @@ open class FDWaveformView: UIView {
189189
return window?.screen.scale ?? UIScreen.main.scale
190190
}
191191

192-
/// Waveform type for rending waveforms
192+
/// Waveform type for rendering waveforms
193193
//TODO: make this public after reconciling FDWaveformView.WaveformType and FDWaveformType
194194
var waveformRenderType: FDWaveformType {
195195
get {
@@ -240,7 +240,7 @@ open class FDWaveformView: UIView {
240240
}
241241

242242
/// Indicates the gesture begun lastly.
243-
/// This helps to determine which of continuous interaction should be active, pinching or panning.
243+
/// This helps to determine which of the continuous interactions should be active, pinching or panning.
244244
/// pinchRecognizer
245245
fileprivate var firstGesture = PressType.none
246246

@@ -290,7 +290,7 @@ open class FDWaveformView: UIView {
290290
inProgressWaveformRenderOperation?.cancel()
291291
}
292292

293-
/// If the cached waveform or in progress waveform is insufficient for the current frame
293+
/// If the cached waveform or in-progress waveform is insufficient for the current frame
294294
fileprivate func cacheStatus() -> CacheStatus {
295295
guard !renderForCurrentAssetFailed else { return .notDirty(cancelInProgressRenderOperation: true) }
296296

@@ -502,13 +502,13 @@ extension FDWaveformView: UIGestureRecognizerDelegate {
502502
case .began:
503503
if firstGesture == .none {
504504
// Set firstGesture to .pinch only if panning gesture is not active.
505-
// This enables the user to repetitive pan and zoom action.
506-
// If we set firstGesture to .pinch in any state then the user became unable
507-
// to panning until they release all of fingers from the view.
505+
// This enables the user to repetitively pan and zoom action.
506+
// If we set firstGesture to .pinch in any state then the user becomes unable
507+
// to pan until they release all fingers from the view.
508508
firstGesture = .pinch
509509
}
510510
case .ended, .cancelled:
511-
// This happens only if panning had not started.
511+
// This happens only if panning has not started.
512512
firstGesture = .none
513513
default:
514514
break
@@ -527,7 +527,7 @@ extension FDWaveformView: UIGestureRecognizerDelegate {
527527
@objc func handlePanGesture(_ recognizer: UIPanGestureRecognizer) {
528528
guard !zoomSamples.isEmpty else { return }
529529

530-
// This method is called even the user began with pinching.
530+
// This method is called even if the user began with pinching.
531531

532532
switch recognizer.state {
533533
case .began:
@@ -596,13 +596,13 @@ extension FDWaveformView: UIGestureRecognizerDelegate {
596596
/// An audio file was loaded
597597
@objc optional func waveformViewDidLoad(_ waveformView: FDWaveformView)
598598

599-
/// The panning gesture did begin
599+
/// The panning gesture began
600600
@objc optional func waveformDidBeginPanning(_ waveformView: FDWaveformView)
601601

602-
/// The panning gesture did end
602+
/// The panning gesture ended
603603
@objc optional func waveformDidEndPanning(_ waveformView: FDWaveformView)
604604

605-
/// The scrubbing gesture did end
605+
/// The scrubbing gesture ended
606606
@objc optional func waveformDidEndScrubbing(_ waveformView: FDWaveformView)
607607
}
608608

Tests/CheckCocoaPodsQualityIndexes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# by William Entriken, version 1.0.1
66
# Part of https://github.com/fulldecent/swift3-module-template
77
#
8-
# The validates that all controllable quality metrics receive maximum score
8+
# This validates that all controllable quality metrics receive maximum score
99
# from CocoaPods's scoring quality algorithm
1010
#
1111
# Usage: ruby CheckCocoaPodsQualityIndexes.rb PODNAME

iOS Example/Sources/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class ViewController: UIViewController {
136136
super.viewDidLoad()
137137
let thisBundle = Bundle(for: type(of: self))
138138
let url = thisBundle.url(forResource: "Submarine", withExtension: "aiff")
139-
// Animate the waveform view in when it is rendered
139+
// Animate the waveform view when it is rendered
140140
waveform.delegate = self
141141
waveform.alpha = 0.0
142142
waveform.audioURL = url

0 commit comments

Comments
 (0)