File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ final class FDWaveformRenderOperation: Operation {
4949 /// Format of waveform image
5050 let format : FDWaveformRenderFormat
5151
52- // MARK: - NSOperation Overrides
52+ // MARK: - NSOperation overrides
5353
5454 override var isAsynchronous : Bool { return true }
5555
@@ -59,7 +59,7 @@ final class FDWaveformRenderOperation: Operation {
5959 private var _isFinished = false
6060 override var isFinished : Bool { return _isFinished }
6161
62- // MARK: - Private
62+ // MARK: - private
6363
6464 /// Handler called when the rendering has completed. nil UIImage indicates that there was an error during processing.
6565 private let completionHandler : ( UIImage ? ) -> Void
Original file line number Diff line number Diff line change 11//
22// Copyright (c) William Entriken and the FDWaveformView contributors
33//
4- import Accelerate
54import UIKit
65
7- // FROM http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader
8- // DO SEE http://stackoverflow.com/questions/1191868/uiimageview-scaling-interpolation
9- // see http://stackoverflow.com/questions/3514066/how-to-tint-a-transparent-png-image-in-iphone
10-
116/// A view for rendering audio waveforms
127open class FDWaveformView : UIView {
138 /// A delegate to accept progress reporting
@@ -123,7 +118,7 @@ open class FDWaveformView: UIView {
123118 }
124119 }
125120
126- //TODO: MAKE PUBLIC
121+ // TODO: make public
127122
128123 /// The portion of extra pixels to render left and right of the viewable region
129124 private var horizontalBleedTarget = 0.5
@@ -149,7 +144,7 @@ open class FDWaveformView: UIView {
149144 /// Minimum number of samples that can be displayed (limits maximum zoom)
150145 private let minimumZoomSamples = 10
151146
152- // Mark - Private vars
147+ // mark - private vars
153148
154149 /// Whether rendering for the current asset failed
155150 private var renderForCurrentAssetFailed = false
@@ -658,7 +653,7 @@ extension FDWaveformView: UIGestureRecognizerDelegate {
658653 @objc optional func waveformDidEndScrubbing( _ waveformView: FDWaveformView )
659654}
660655
661- //MARK -
656+ //mark:
662657
663658extension CountableRange where Bound: Strideable {
664659
You can’t perform that action at this time.
0 commit comments