uimenu Questions
1
I tried to create a custom SwiftUI menu (based on UIMenu).
However, I'm unable to trigger the primary action.
It works when I tap on the CustomMenu but the programmatic action is not triggered. Wha...
Elsyelton asked 13/1, 2021 at 12:11
3
iOS 14's UIMenu seems to be able to be presented from any UIBarButtonItem or UIButton / UIControl, but I how would I present it from a generic UIView?
5
Solved
iOS 14 adds the ability to display menus upon tapping or long pressing a UIBarButtonItem or UIButton, like so:
let menu = UIMenu(children: [UIAction(title: "Action", image: nil) { action ...
3
Solved
in iOS 14, there are new APIs for UIMenu, and it can now be attached to UIBarButtonItem, just like that:
This is my code:
@IBOutlet weak var addButton: UIBarButtonItem! // The button is from the s...
Adele asked 7/8, 2020 at 10:21
1
Please tell me how to customize this menu?
Perhaps another way to do it?
let barMenu = UIMenu(title: "", children: [
UIAction(title: NSLocalizedString("menu_item_home", commen...
Tasker asked 21/7, 2021 at 20:8
1
I have a UIButton with a UIMenu attached, I need to know when the UIMenu is dismissed (by tapping outside the UIMenu) so I can remove the button that the UIMenu is attached to.
I have seen there ar...
3
Solved
Paste the following code into a project:
No image shows next to 'Device Honey' ie the UIMenu
However the image shows up next to 'Copy' ie the UIACtion.
Am I doing something wrong? If this is a b...
Anisaanise asked 16/10, 2019 at 21:55
2
Solved
The Goal:
Trying to create a filter selection screen (in a card view) that has UIButtons with UIMenu items attached them.
When i select any of the filters, and click on the apply filters button, i ...
2
I'm attempting to create a custom menu for each view in my app, however it appears buildMenu is not being called in View Controllers. Here's an example:
In my AppDelegate, this code is used, which...
Diffidence asked 27/7, 2019 at 23:13
0
Other than the a WWDC video - 44:18 a sample project there's not much info online.
So the actionProvider, when called, has a list of suggestedActions
that are passed to it by the system.
Th...
Albi asked 18/10, 2019 at 18:46
1
© 2022 - 2024 — McMap. All rights reserved.