Add pointer interaction to stretchy menu items
This commit is contained in:
parent
ef215e8bdc
commit
6521c54a65
|
@ -362,6 +362,8 @@ private class MenuItemView: UIView {
|
||||||
addInteraction(UIContextMenuInteraction(delegate: self))
|
addInteraction(UIContextMenuInteraction(delegate: self))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addInteraction(UIPointerInteraction())
|
||||||
|
|
||||||
addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(itemTapped)))
|
addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(itemTapped)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue