Skip to content

Instantly share code, notes, and snippets.

@rosstulloch
Created November 2, 2017 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosstulloch/2b0789eab7141430b3b9029595a82889 to your computer and use it in GitHub Desktop.
Save rosstulloch/2b0789eab7141430b3b9029595a82889 to your computer and use it in GitHub Desktop.
File Reference URL in Swift.swift
if let refURL = (a as NSURL).perform(#selector(NSURL.fileReferenceURL))?.takeUnretainedValue() as? NSURL {
print(refURL)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment