Repository Public
1// =============================================================================2// SP BOUCHER | SOFTWARE & RESEARCH3// ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// Project : QYVORA7// File : App/Sources/AppDelegate.swift8// Module : Sources9// Repository : https://git.spboucher.ai/qyvora10// Project Website : Not specified11// Created : 2026-12-0412// Last Modified : 2026-12-0413//14// Author : Simon-Pierre Boucher15// Position : Professor of Finance16// Institution : Université du Québec en Outaouais (UQO)17// Organization : SP Boucher18// Website : https://spboucher.ai19// Git : https://git.spboucher.ai20//21// Preferred Contact: contact@spboucher.ai22// Development : dev@spboucher.ai23// Support : support@spboucher.ai24// Security/Admin : admin@spboucher.ai25//26// Copyright (c) 202627// Simon-Pierre Boucher28// All rights reserved where applicable. This file is governed by the29// applicable project license, copyright notices and relevant law.30// Existing third-party rights and notices remain unaffected.31//32// License : None specified (no license file in this repository)33//34// Do not embed credentials, private keys, access tokens,35// certificates or confidential personal information.36//37// =============================================================================38// END OF SP BOUCHER SOURCE HEADER39// =============================================================================4041import UIKit4243/// Application delegate, used for the decisions SwiftUI has no modifier for.44///45/// Keyboard extensions (QYV-APP-005, MASTG-TEST-0389): a third-party keyboard with full access receives every46/// character typed into a plain text field and can send it to its publisher. The recovery phrase is typed into plain47/// fields (a secure field would hide each word and defeat the word-by-word validation), so custom keyboards are48/// refused for the whole application: iOS then always presents the system keyboard, whatever the user installed.49final class QyvoraAppDelegate: NSObject, UIApplicationDelegate {50 func application(_ application: UIApplication,51 shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool {52 Self.allows(extensionPointIdentifier)53 }5455 /// The rule itself: every extension point except the keyboard.56 static func allows(_ extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool {57 if extensionPointIdentifier == .keyboard { return false }58 return true59 }60}61