Skip to content

while (true) { }

notes from a developer, tutorials, how-to, ideas

Tag: keyWindow

Posted on 26 October 202012 October 2020

Swift – Get app keyWindow

Quick memo to get the keyWindow for all iOS versions until now.

KeyWindow is the “key” window of your entire application. The key window receives keyboard and other non-touch related events. Only one window at a time may be the key window.

Use the #available(iOS 13.0, *) keyword to bypass system check:

Continue reading “Swift – Get app keyWindow”

Recent Posts

  • Swift – Simple full screen loader 11 August 2022
  • macOS – Disable microphone while typing 11 April 2022
  • iOS – Secure app sensitive information 25 March 2022
  • DIY: Hack Weward for iOS 8 March 2022
  • Swift – Circular button bubbles with gravity 26 November 2021
  • Swift – Have fun with GravityBehavior and DynamicAnimator 19 November 2021

Archives

Proudly powered by WordPress