import UIKit import CoreHaptics import AVFoundation
enum ShiftStatus{ case capitalized case normal }
@available(iOSApplicationExtension 13.0, *) class KeyboardViewController: UIInputViewController { var engine: CHHapticEngine? lazy var supportsHaptics: Bool = { let appDelegate = UIApplication.shared.delegate as! AppDelegate return appDelegate.supportsHaptics }()
Currently working here 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. A warning message pops up. I have to use it in an extension. Does anyone know a solution?