I want to customize the action buttons on context menu for iOS 13+
Menus are something like this:
I thought I could set the custom font like UIAlertController actions like this:
let action = UIAction(title: "asdasd") { _ in}
let attributeString = NSMutableAttributedString(string: action.title)
attributeString.addAttributes([NSAttributedString.Key.font : font], range: NSMakeRange(0, action.title.count))
action.setValue(attributeString, forKey: "attributedMessage")
But its not work like that, so how is it?