3

I'm blocking screenshots and video records for ios in my app. But when I installed the latest update ios rejected it.

We noticed that your app shows a custom screenshot-initiated interface when the user takes a screenshot, but the interface duplicates the iOS system-provided screenshot interface and functionality.

Duplicating system-provided interfaces does not provide the simple, innovative, and easy to use experience App Store users expect.

This is rejected message.

This is my code

      extension UIWindow {
  func makeSecure() {
      let field = UITextField()
      field.isSecureTextEntry = true
      self.addSubview(field)
      field.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true
      field.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true
      self.layer.superlayer?.addSublayer(field.layer)
      field.layer.sublayers?.first?.addSublayer(self.layer)
    }
  }

How to I solve it

1 Answers1

2

I've the same problem. Apple says that:

"We noticed that your app shows a custom screenshot-initiated interface when the user takes a screenshot, but the interface duplicates the iOS system-provided screenshot interface and functionality.

Specifically, your app only displayed a black blank page when the user takes a screenshot.

Duplicating system-provided interfaces does not provide the simple, innovative, and easy to use experience App Store users expect.

To resolve this issue, either remove the custom interface or revise it to not duplicate the system-provided screenshot interface and functionality."

blackgreen
  • 34,072
  • 23
  • 111
  • 129
nvrm22
  • 61
  • 4
  • custom interface or revise it to not duplicate the system-provided screenshot interface and functionality --- can you please describe more on this? – Nehil Koshiya Apr 10 '23 at 04:42
  • @NehilKoshiya I am also getting the same issue. This is causing bcoz of the code block we added to prevent capturing screenshots. – kunj kanani Jun 16 '23 at 05:12