The converted code from the message that was associated with is as follows:
func setShakeState(fp8: Int) { _shakeState = fp8 } func _setSubtype(fp8: Int) { _subtype = fp8 }
and
var m: UIMotionEventProxy = NSClassFromString("UIMotionEvent")._init() m.setShakeState(1) m._setSubtype(UIEventSubtypeMotionShake) UIApplication.sharedApplication().sendEvent(m) UIApplication.sharedApplication().keyWindow().motionBegan(UIEventSubtypeMotionShake, withEvent: m) UIApplication.sharedApplication().keyWindow().motionEnded(UIEventSubtypeMotionShake, withEvent: m)
Here is the site I used to convert: https://objectivec2swift.com/#/converter .
source share