captureTextFromCamera action is not get triggered in iPad Air (4th gen)

Hi folks, I tried to use apple's text recognition feature by using UIAction.captureTextFromCamera(responder:identifier:). It works fine in iPhone and iPad 3rd Gen. But in iPad 4th Gen the action is not get triggered. Kindly provide assistance .

if #available(iOS 15.0, *), self.canPerformAction(#selector(captureTextFromCamera(_:)), withSender: self) {
      let cameraAction = UIAction.captureTextFromCamera(responder: self, identifier: nil)
      let cameraButton = UIButton(type: .custom)
      cameraButton.addAction(cameraAction, for: .touchUpInside)
      cameraButton.setTitle("Scan-Text", for: .normal)
      view.addSubview(cameraButton)
      // Then set constraints

    }

_Note: The button to trigger the action is visible only the action is not get triggered. _

Device specs:

Name: iPad Air 4th Gen

Os : iOS 16

captureTextFromCamera action is not get triggered in iPad Air (4th gen)
 
 
Q