From f38f53c79d233816ca916066117a43a9458511bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Hu=CC=88hne?= Date: Mon, 20 Jan 2025 16:00:30 +0100 Subject: [PATCH] I have added a force quit feature to prevent the application from reaching this point. --- .../User Interface/Confidential/SecureTextField.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ownCloudAppShared/User Interface/Confidential/SecureTextField.swift b/ownCloudAppShared/User Interface/Confidential/SecureTextField.swift index af60fba21..db23865ce 100644 --- a/ownCloudAppShared/User Interface/Confidential/SecureTextField.swift +++ b/ownCloudAppShared/User Interface/Confidential/SecureTextField.swift @@ -46,6 +46,9 @@ class SecureTextField : UITextField { return secureView } + // If screenshot protection was not possible, force close the application. + exit(0) + let view = UIView() view.translatesAutoresizingMaskIntoConstraints = false