How kean/nuke works
Project type and purpose
• This is a native Swift image‐loading framework (not a full-stack app).
• It provides a core “ImagePipeline” (Sources/Nuke) plus three higher-level modules:
• NukeUI – SwiftUI & UIKit/AppKit image views
• NukeExtensions – convenience extensions for UIImageView/AppKit
• NukeVideo – video decoding & playback helpers
File structure
• Top-level directories:
• .scripts – CI, linting, testing, build helpers
• Documentation – guides, API docs, migration notes
• Sources – four modules: Nuke, NukeUI, NukeExtensions, NukeVideo
• Tests – thousands of unit, performance, thread-safety, UI tests
• Inside Sources/Nuke: clearly defined subpackages for Caching, Decoding, Encoding, Loading, Pipeline orchestration, Prefetching, Processing, Tasks, Internal utilities
Extract architectural clues from README
• Core abstraction: ImagePipeline + ImageTask + ImageRequest + ImageResponse
• Key features: memory/disk cache, request coalescing, priority, progressive JPEG, async/await & Combine, extensibility points (plugins for networking, codecs)