Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UI Debugging Overlay.py
# Pythonista script to show the UI Debugging overlay (private API) described in this blog post:
# http://ryanipete.com/blog/ios/swift/objective-c/uidebugginginformationoverlay/
from objc_util import ObjCClass, on_main_thread
UIDebuggingInformationOverlay = ObjCClass('UIDebuggingInformationOverlay')
@on_main_thread
def toggle_overlay():
UIDebuggingInformationOverlay.prepareDebuggingOverlay()
UIDebuggingInformationOverlay.overlay().toggleVisibility()
toggle_overlay()
@jsbain

This comment has been minimized.

Copy link

commented Aug 19, 2017

holy moly! how did i not know about this before! Does this actually work in pythonista ( i seem to get an empty table)

@scj643

This comment has been minimized.

Copy link

commented Nov 30, 2017

iOS 11 breaks this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.