uiaction

How can I use suggestedActions given from UIContextMenuConfiguration?

只谈情不闲聊 提交于 2019-12-24 06:06:03
问题 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. This can be a mix of UIMenu s and UIAction s, so potentially a fully constructed hierarchy that are picked up from the system. These could be things that you defined in your responder chain using the new UI command API being introduced in iOS 13 or things that are offered by other system components. So we're

Does iOS 13 - UIMenu have a bug that doesn't show its image?

只谈情不闲聊 提交于 2019-12-11 15:36:19
问题 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 bug? Is there a workaround? class ViewController: UIViewController { let tableview: UITableView = { let tv = UITableView() tv.frame = UIScreen.main.bounds return tv }() override func viewDidLoad() { super.viewDidLoad() view.addSubview(tableview) tableview.register(UITableViewCell.self,