-
Notifications
You must be signed in to change notification settings - Fork 383
Reactions with ContextMenu #2112
Conversation
|
Love it! Sent with GitHawk |
|
I'll try and sneak this in for the latest release, why not. The whole UIMenu stuff seems to break a lot of things w/ the |
|
Go for it :) |
|
#yolo |
| else { return } | ||
|
|
||
| var index = -1 | ||
| for (i, model) in viewModels.reversed().enumerated() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you're doing here. Can't parse it from the code 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting it in a separate function (+ tests) would not be a bad idea I think 😇
| menu.setTargetRect(addButton.imageView?.frame ?? .zero, in: addButton) | ||
| menu.setMenuVisible(true, animated: trueUnlessReduceMotionEnabled) | ||
| @objc private func onAddButton(sender: UIView) { | ||
| // addButton.becomeFirstResponder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed, or?
|
Didn’t see this. Looks amazing! 🤯 Sent with GitHawk |
|
Was |
|
We should add the Sent with GitHawk |
Need to do some cleanup, but this looks pretty neat