Pointer effects
This commit is contained in:
@@ -14,6 +14,10 @@ class ToolbarButtonContainerView: UIView
|
||||
public var numberOfButtonViews: Int { buttonViews.count }
|
||||
|
||||
func addButtonView(_ button: UIView) {
|
||||
if let asButton = button as? UIButton {
|
||||
asButton.isPointerInteractionEnabled = true
|
||||
}
|
||||
|
||||
buttonViews.append(button)
|
||||
addSubview(button)
|
||||
setNeedsLayout()
|
||||
|
||||
Reference in New Issue
Block a user