

Open the starter project, then build and run. Ready to explore space from the comfort of your iPhone? Time to get started! Getting StartedĬlick the Download Materials button at the top or bottom of this tutorial to download the resources you’ll need. Use Combine in your project to load different image sizes consecutively.Integrate Nuke’s Combine extension called ImagePublisher.Resize photos on the fly to keep memory usage under control.Load remote images while maintaining the app’s responsiveness.Integrate Nuke into your project using the Swift Package Manager.In this Nuke tutorial, you’ll learn how to: Good news! There is a better way in the form of a third-party library called Nuke. You already dread having to write the tons of boilerplate code associated with OperationQueue. And to top it off, they don’t have thumbnails available. Wouldn’t it be nice to have an app that displays NASA’s beautiful photos so you could look at them on your phone whenever you want? The only problem is that some of these photos of space are enormous - like 60MB enormous. It’s NASA!Īnd what’s the best subject matter for them to photograph? Again, unless you work for NASA, the answer is, unfortunately, not you. But do you know who has the best cameras? No, not the modeling agency that does your headshots. Yono Mittlefehldt wrote the original.Įach year, the newest iPhone camera gets better and better.

Nuke 10 tutorail update#
Update note: Ehab Yosry Amer updated this tutorial for iOS 13, Xcode 11 and, Swift 5.
