Last active
January 6, 2024 05:44
-
-
Save omz/b76261844db0255899ba857838a7c201 to your computer and use it in GitHub Desktop.
UI Debugging Overlay.py
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
# 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() |
https://www.raywenderlich.com/295-swizzling-in-ios-11-with-uidebugginginformationoverlay may have some info on how to update for >iOS11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
iOS 11 breaks this