Created
June 21, 2018 15:53
-
-
Save Pegolon/e5b4ed7e3a874fba07cb3b394dc6126b to your computer and use it in GitHub Desktop.
Cast pointer to Swift object (eg. print out current URL for webView from view debugger)
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
expr -l Swift -- import UIKit | |
expr -l Swift -- let $webview = unsafeBitCast(0x7b500026ca00, to: UIWebView.self) | |
expr -l Swift -- print($webview.request.url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment