Skip to content

Commit

Permalink
Merge pull request #75 from NickCulbertson/RemovePrepareForInterfaceB…
Browse files Browse the repository at this point in the history
…uilder

Remove prepareForInterfaceBuilder from ADSRView
  • Loading branch information
NickCulbertson authored Oct 19, 2023
2 parents 9d5f5ae + 4b4add5 commit a5b6c27
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Sources/AudioKitUI/Controls/ADSRView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ import UIKit
self.callback = callback
super.init(frame: CGRect(x: 0, y: 0, width: 440, height: 150))
backgroundColor = bgColor
contentMode = .scaleAspectFill
clipsToBounds = true
}

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

// MARK: - Storyboard Rendering

/// Perform necessary operation to allow the view to be rendered in interface builder
override public func prepareForInterfaceBuilder() {
super.prepareForInterfaceBuilder()
contentMode = .scaleAspectFill
clipsToBounds = true
}

/// Size of the view
override public var intrinsicContentSize: CGSize {
return CGSize(width: 440, height: 150)
Expand Down

0 comments on commit a5b6c27

Please sign in to comment.