Skip to content

Instantly share code, notes, and snippets.

@omz
Last active January 6, 2024 05:44
Show Gist options
  • Save omz/b76261844db0255899ba857838a7c201 to your computer and use it in GitHub Desktop.
Save omz/b76261844db0255899ba857838a7c201 to your computer and use it in GitHub Desktop.
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
Copy link

jsbain 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
Copy link

scj643 commented Nov 30, 2017

iOS 11 breaks this

@Aareon
Copy link

Aareon commented Jun 2, 2021

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