This commit is contained in:
@@ -8,6 +8,15 @@ import UIKit
|
||||
final class AudioSectionView: UIView
|
||||
{
|
||||
var mixerSettingsHandler: (() -> Void)?
|
||||
var bottomContentInset: CGFloat = 0.0
|
||||
{
|
||||
didSet
|
||||
{
|
||||
if oldValue != bottomContentInset {
|
||||
setNeedsLayout()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private let _label = UILabel(frame: .zero)
|
||||
private let _mixerSettingsButton = AudioActionButton(type: .custom)
|
||||
@@ -51,7 +60,10 @@ final class AudioSectionView: UIView
|
||||
x: 0.0,
|
||||
y: _label.frame.maxY + labelSpacing,
|
||||
width: bounds.width,
|
||||
height: max(0.0, bounds.height - _label.frame.height - labelSpacing)
|
||||
height: max(
|
||||
0.0,
|
||||
bounds.height - _label.frame.height - labelSpacing - bottomContentInset
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user