You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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")
Simplified version of NSBundle.mainBundle().urlForResource("filename", withExtension:".txt")
Something like:
let url = URL("filename.txt")
let path = Path("filename.txt")
The text was updated successfully, but these errors were encountered: