I just had an idea for a neat thing Apple could do.

Y’know the little tabs that pop up when you select text in iOS?

It’d be cool if the device learned which actions you tend to choose in a given situation.

So, if you choose “Translate” more often than, say, “Format,” they could make that a little easier for you.

This is an idea that I just had.

@hotdogsladies Fun not fun fact: developers have no control over the placement/availability of the standard items in that list.

So if you have an app like Tot that doesn’t need “Format”, you can’t get rid of it. Or move “Translate” or “Look Up” to the beginning of the list if you have an app with content in a language you don’t understand well.

Which is dumb.

@chockenberry I’ve had success moving menu items around using the iOS 16+ textView(_:editMenuForTextIn:suggestedActions:) method:

(1) make a mutable array "actions” of suggestedActions
(2) get a reference by UIMenuElement.identifier to the relevant menu UIMenuElement in actions (format menu identifier: “com.apple.menu.format”; edit menu identifier: “com.apple.menu.standard-edit”)
(3) move the referenced UIMenuElement to a different index in actions
(4) return [UIMenu menuWithChildren:actions]

@chmohler Last time I tried that App Review kicked back on the string identifiers.
@chockenberry Thanks, Craig— that's good to know. My app just last week got through App Review with the string identifiers in, but I appreciate the heads-up about a potential future problem with App Review.
@chockenberry Hi again, Craig. I just realized that there are official public identifiers (for the menus I mentioned in my last message): see https://developer.apple.com/documentation/uikit/uimenu/identifier. These (in place of the string identifiers) appear to work to get references to the Apple menu items to be moved around. Cast to UIMenu objects the UIMenuElements in the suggestedActions of textView(_:editMenuForTextIn:suggestedActions:) to make use of these identifiers.
UIMenu.Identifier | Apple Developer Documentation

Constants you use to identify an app’s standard menus.

Apple Developer Documentation