Skip to content

Instantly share code, notes, and snippets.

@Pegolon
Created June 21, 2018 15:53
Show Gist options
  • Save Pegolon/e5b4ed7e3a874fba07cb3b394dc6126b to your computer and use it in GitHub Desktop.
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)
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