C4iOS
C4iOS copied to clipboard
Add URL(), Path() methods
Simplified version of NSBundle.mainBundle().urlForResource("filename", withExtension:".txt")
Something like:
let url = URL("filename.txt")
let path = Path("filename.txt")
I think this may be confusing if you are trying to create a file, since you can never create a file in a bundle. What about let url = URL(forFileInMainBundle: "filename.txt")
. Also I feel like this may be outside our scope. I'd prefer something like let movie = Movie(loadFromMainBundle: "movie.mp4")