Skip to content

Commit 114ed09

Browse files
committed
Remove notes about interface builder
1 parent 33b1462 commit 114ed09

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FDWaveformView displays audio waveforms in Swift apps so users can preview audio
44

55
## Usage
66

7-
Add an `FDWaveformView` in Interface Builder or programmatically, then load audio. If your file is missing an extension, see the [Stack Overflow answer on AVURLAsset without extensions](https://stackoverflow.com/questions/9290972/is-it-possible-to-make-avurlasset-work-without-a-file-extension).
7+
Add an `FDWaveformView` programmatically, then load audio. If your file is missing an extension, see the [Stack Overflow answer on AVURLAsset without extensions](https://stackoverflow.com/questions/9290972/is-it-possible-to-make-avurlasset-work-without-a-file-extension).
88

99
```swift
1010
let thisBundle = Bundle(for: type(of: self))

Sources/FDWaveformView/FDWaveformView.swift

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ import UIKit
1111
// see http://stackoverflow.com/questions/3514066/how-to-tint-a-transparent-png-image-in-iphone
1212

1313
/// A view for rendering audio waveforms
14-
/*@IBDesignable*/ // IBDesignable support in XCode is so broken it's sad
1514
open class FDWaveformView: UIView {
1615
/// A delegate to accept progress reporting
17-
/*@IBInspectable*/ open weak var delegate: FDWaveformViewDelegate?
16+
open weak var delegate: FDWaveformViewDelegate?
1817

1918
/// The audio file to render
20-
/*@IBInspectable*/ open var audioURL: URL? {
19+
open var audioURL: URL? {
2120
didSet {
2221
guard let audioURL = audioURL else {
2322
NSLog("FDWaveformView received nil audioURL")
@@ -51,7 +50,7 @@ open class FDWaveformView: UIView {
5150
}
5251

5352
/// The samples to be highlighted in a different color
54-
/*@IBInspectable*/ open var highlightedSamples: CountableRange<Int>? = nil {
53+
open var highlightedSamples: CountableRange<Int>? = nil {
5554
didSet {
5655
guard totalSamples > 0 else {
5756
return
@@ -69,7 +68,7 @@ open class FDWaveformView: UIView {
6968
}
7069

7170
/// The samples to be displayed
72-
/*@IBInspectable*/ open var zoomSamples: CountableRange<Int> = 0..<0 {
71+
open var zoomSamples: CountableRange<Int> = 0..<0 {
7372
didSet {
7473
setNeedsDisplay()
7574
setNeedsLayout()
@@ -78,13 +77,13 @@ open class FDWaveformView: UIView {
7877

7978
/// Whether to allow tap and pan gestures to change highlighted range
8079
/// Pan gives priority to `doesAllowScroll` if this and that are both `true`
81-
/*@IBInspectable*/ open var doesAllowScrubbing = true
80+
open var doesAllowScrubbing = true
8281

8382
/// Whether to allow pinch gesture to change zoom
84-
/*@IBInspectable*/ open var doesAllowStretch = true
83+
open var doesAllowStretch = true
8584

8685
/// Whether to allow pan gesture to change zoom
87-
/*@IBInspectable*/ open var doesAllowScroll = true
86+
open var doesAllowScroll = true
8887

8988
/// Supported waveform types
9089
//TODO: make this public after reconciling FDWaveformView.WaveformType and FDWaveformType
@@ -101,14 +100,14 @@ open class FDWaveformView: UIView {
101100
}
102101

103102
/// The color of the waveform
104-
@IBInspectable open var wavesColor = UIColor.black {
103+
open var wavesColor = UIColor.black {
105104
didSet {
106105
imageView.tintColor = wavesColor
107106
}
108107
}
109108

110109
/// The color of the highlighted waveform (see `highlightedSamples`
111-
@IBInspectable open var progressColor = UIColor.blue {
110+
open var progressColor = UIColor.blue {
112111
didSet {
113112
highlightedImage.tintColor = progressColor
114113
}

0 commit comments

Comments
 (0)