Skip to content

Instantly share code, notes, and snippets.

@amelnychuck
Created May 27, 2017 15:51
Show Gist options
  • Select an option

  • Save amelnychuck/bed2417db14054d98beeb593bfc832e8 to your computer and use it in GitHub Desktop.

Select an option

Save amelnychuck/bed2417db14054d98beeb593bfc832e8 to your computer and use it in GitHub Desktop.
UIDebuggingInformationOverlay
// ...
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Do not include in App Store builds
// Tap status bar with two fingers to toggle overlay visibility
let overlayClass = NSClassFromString("UIDebuggingInformationOverlay") as? UIWindow.Type
_ = overlayClass?.perform(NSSelectorFromString("prepareDebuggingOverlay"))
}
// ...
@amelnychuck

Copy link
Copy Markdown
Author

Wonderful private debugging overlay found by Ryan Peterson!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment