Skip to content

Instantly share code, notes, and snippets.

@amelnychuck
Created May 27, 2017 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amelnychuck/bed2417db14054d98beeb593bfc832e8 to your computer and use it in GitHub Desktop.
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
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