Skip to content

Commit a5b6c27

Browse files
Merge pull request #75 from NickCulbertson/RemovePrepareForInterfaceBuilder
Remove prepareForInterfaceBuilder from ADSRView
2 parents 9d5f5ae + 4b4add5 commit a5b6c27

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Sources/AudioKitUI/Controls/ADSRView.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ import UIKit
9999
self.callback = callback
100100
super.init(frame: CGRect(x: 0, y: 0, width: 440, height: 150))
101101
backgroundColor = bgColor
102+
contentMode = .scaleAspectFill
103+
clipsToBounds = true
102104
}
103105

104106
/// Initialization of the view from within interface builder
@@ -108,13 +110,6 @@ import UIKit
108110

109111
// MARK: - Storyboard Rendering
110112

111-
/// Perform necessary operation to allow the view to be rendered in interface builder
112-
override public func prepareForInterfaceBuilder() {
113-
super.prepareForInterfaceBuilder()
114-
contentMode = .scaleAspectFill
115-
clipsToBounds = true
116-
}
117-
118113
/// Size of the view
119114
override public var intrinsicContentSize: CGSize {
120115
return CGSize(width: 440, height: 150)

0 commit comments

Comments
 (0)