Abhishek Agarwal
extension UIWindow { open override func motionBegan(_ motion: UIEvent.EventSubtype, with event: UIEvent?) { if motion == .motionShake { // Do something } } }
A modern programming language that makes developers happier.