UIWindow

class UIWindow : UIView
  • We hook into this function to post a Notification whenever the device is shaken and subsequentially display the Cauli UI. If this function is overridden in the client application, the notification is not posted and the UI hast to be displayed manually.

    Declaration

    Swift

    override open func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?)