Created
September 17, 2018 09:31
-
-
Save novinfard/3dab36d92352dae5080846851bf17eec to your computer and use it in GitHub Desktop.
[Get swift local file]
This file contains hidden or 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
if let urlpath = Bundle.main.path(forResource: "bpreg", ofType: "xml") { | |
let url = NSURL.fileURL(withPath: urlpath) | |
} | |
let urlpath = Bundle.main.path(forResource: "sample", ofType: "mp3") | |
let url = NSURL.fileURL(withPath: urlpath!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment