Pointer effects

This commit is contained in:
James Magahern
2021-04-19 17:55:24 -07:00
parent 6eb462aeb7
commit 428232bfa8
5 changed files with 28 additions and 1 deletions

View File

@@ -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()