SwiftBindings.Nuke 13.0.7

dotnet add package SwiftBindings.Nuke --version 13.0.7
                    
NuGet\Install-Package SwiftBindings.Nuke -Version 13.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SwiftBindings.Nuke" Version="13.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SwiftBindings.Nuke" Version="13.0.7" />
                    
Directory.Packages.props
<PackageReference Include="SwiftBindings.Nuke" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SwiftBindings.Nuke --version 13.0.7
                    
#r "nuget: SwiftBindings.Nuke, 13.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SwiftBindings.Nuke@13.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SwiftBindings.Nuke&version=13.0.7
                    
Install as a Cake Addin
#tool nuget:?package=SwiftBindings.Nuke&version=13.0.7
                    
Install as a Cake Tool

SwiftBindings.Nuke

Native Swift interop bindings for Nuke, a powerful image loading and caching framework for Swift. These are not Objective-C proxy wrappers — they use .NET 10's native Swift interop for direct, high-performance calls into Swift APIs from C#.

Installation

dotnet add package SwiftBindings.Nuke

Requirements

  • .NET 10.0+
  • iOS 15.0+
  • macOS host for development

Usage

Load an image

using Nuke;

var pipeline = ImagePipeline.Shared;
var request = new ImageRequest("https://example.com/photo.jpg");
var image = await pipeline.ImageAsync(request);

Concurrent loading

var pipeline = ImagePipeline.Shared;

var tasks = urls.Select(url => Task.Run(async () =>
{
    var request = new ImageRequest(url);
    return await pipeline.ImageAsync(request);
}));

var images = await Task.WhenAll(tasks);

Cache management

// Configure the image cache
var cache = ImageCache.Shared;
cache.CostLimit = 50_000_000;  // 50 MB
cache.CountLimit = 200;
cache.Ttl = 300.0;             // 5 minutes

// Data cache with compression
var dataCache = new DataCache("my-cache");
dataCache.SizeLimit = 100_000_000;  // 100 MB
dataCache.IsCompressionEnabled = true;

// Clear all cached data
pipeline.Cache.RemoveAll();

Prefetching

var prefetcher = new ImagePrefetcher(ImagePipeline.Shared);
prefetcher.Priority = ImageRequest.PriorityType.High;
// ...
prefetcher.StopPrefetching();

How It Works

These bindings are auto-generated by Swift Dotnet Bindings using .NET 10's native Swift interop via the SwiftBindings SDK.

Building from Source

Only needed if you're contributing or building the package locally.

# One-time: install the pinned Nuke CLI from .config/dotnet-tools.json
dotnet tool restore

# Build the package end-to-end (xcframework + bindings + dotnet build)
dotnet nuke BuildLibrary --library Nuke

License

The bindings are MIT licensed. Nuke itself is MIT licensed — see Nuke's license.

Product Compatible and additional computed target framework versions.
.NET net10.0-ios26.0 is compatible.  net10.0-macos26.0 is compatible.  net10.0-tvos26.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.0.7 93 6/1/2026
13.0.6 115 5/19/2026
12.8.1 108 5/3/2026
12.8.0 124 4/2/2026
12.8.0-preview.2 65 3/27/2026