Skip to content

Commit 3800023

Browse files
Removed prepareForInterfaceBuilder from ADSRView
Removed prepareForInterfaceBuilder
1 parent 5f04c05 commit 3800023

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Sources/AudioKitUI/Controls/ADSRView.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ import UIKit
103103
self.callback = callback
104104
super.init(frame: CGRect(x: 0, y: 0, width: 440, height: 150))
105105
backgroundColor = .clear
106+
contentMode = .scaleAspectFill
107+
clipsToBounds = true
106108
}
107109

108110
/// Initialization of the view from within interface builder
@@ -112,14 +114,6 @@ import UIKit
112114

113115
// MARK: - Storyboard Rendering
114116

115-
/// Perform necessary operation to allow the view to be rendered in interface builder
116-
override public func prepareForInterfaceBuilder() {
117-
super.prepareForInterfaceBuilder()
118-
119-
contentMode = .scaleAspectFill
120-
clipsToBounds = true
121-
}
122-
123117
/// Size of the view
124118
override public var intrinsicContentSize: CGSize {
125119
return CGSize(width: 440, height: 150)

0 commit comments

Comments
 (0)