Skip to content

UIMenuItem is deprecated. Use UIEditMenuInteraction instead #7

Open
@TrabelsiAchraf

Description

@TrabelsiAchraf

I have this warning in my code when I use the code bellow

"'UIMenuController' was deprecated in iOS 16.0: UIMenuController is deprecated. Use UIEditMenuInteraction instead."

  override func toolManager(
        _ toolManager: PTToolManager,
        shouldShowMenu menuController: UIMenuController,
        forAnnotation annotation: PTAnnot?,
        onPageNumber pageNumber: UInt
    ) -> Bool {

Actually I don't want to have warning for free in my code base. Any solution to bypass this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions