Chapter 4: Beginning Message Apps (Bundle.main.urlForResource)

On page 20 the extension CandyStickerBrowserViewController method loadStickers() contains…

let url = Bundle.main.urlforResource(name, withExtension: "png")!

With Xcode Version 8.0 beta 4 (8S188o) I see the following error…

Value of type ‘Bundle’ has no member ‘urlForResource’

Is this a change in beta 4?

Thanks
Tom

Yep this is a change - the new API is:

let url = Bundle.main.url(forResource: name, withExtension: "png")!

This is fixed in the second early access relesase (v0.2) that just came out today :]