Post

Replies

Boosts

Views

Activity

Reply to Right-Click, UIContextMenuInteraction, & UITouch.Type.indirectPointer in iOS 13.4
On iOS 14 you can determine if it is not from a right click when menuAppearance is UIContextMenuInteractionAppearanceRich and return nil. When you do this your long press gesture recognizer will still work. (nullable UIContextMenuConfiguration *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configurationForMenuAtLocation:(CGPoint)location API_AVAILABLE(ios(14.0)){         if (interaction.menuAppearance == UIContextMenuInteractionAppearanceRich) {         return nil;     } 		 		//Do what you want on right click 		 ...
Oct ’20