Created
May 27, 2017 15:51
-
-
Save amelnychuck/bed2417db14054d98beeb593bfc832e8 to your computer and use it in GitHub Desktop.
UIDebuggingInformationOverlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
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")) | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wonderful private debugging overlay found by Ryan Peterson!