Nuke Tutorial for iOS: Getting Started | raywenderlich.com

In this Nuke tutorial, you learn how to integrate Nuke into your project using CocoaPods and load remote images while maintaining the app’s responsiveness.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9229-nuke-tutorial-for-ios-getting-started

Get an error with the DataCache, Use of unresolved Identifier DataCache

@toojuice Can you please help with this when you get a chance? Thank you - much appreciated! :]

Hi @tmjdisorder,

If you build the provided project in the final folder, do you see the same error?

Great suggestion! I had not tried that, and it does build. It looks like this may be turning into a "Perils of using CocoaPods tutorial, the DataCache constructor in the version I got is marked internal, it is public in the version in the final project. Anyway, mischief managed.

Glad to hear it! Nuke is in active development, so there is the chance that things will change.

Actually, looking at the Github repo for Nuke, it looks like the DataCache class is marked as public now. So, hopefully, the next CocoaPods release will clean that up.

DataCache first appeared in Nuke 7.0 (May 2018). It was added as an experimental feature and was initially marked internal. To enable it you would use a special ImagePipeline.Configuration enableExperimentalAggressiveDiskCaching method.

DataCache was made public in Nuke 7.3 (June 2018) after it was proven to be stable.

Thanks for the explanation, @kean!

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!