This is a small Xamarin.iOS binding Proxy for Nuke. Since Nuke is a Swift library, which doesn't expose its code with @objc
annotations, we cannot bind it directly and need a proxy for this.
This proxy provides enough API for Xamarin.Forms.Nuke to function. If you need more of Nukes API to be surfaced, PRs are welcome.
New! There is now a .net 6 version of the proxy targeting ios
and mac catalyst
.
Nuget:
Install-Package ImageCaching.Nuke
NuGet:
Install-Package Xamarin.Nuke
Make sure to install carthage first. This can be done through Homebrew:
brew install carthage
Getting Nuke from carthage:
sh carthage.sh update --use-xcframeworks
Open the NukeProxy.xcodeproj in Xcode and add more code to NukeProxy.swift
.
Make sure to annotate correctly with @objc
. Refer to the other code and Xamarin.iOS Swift Bindings. When done adding more code, ensure project builds:
- Run
sh build.sh
from commandline (make sure you have the latest Sharpie installed) - Copy the new definitions from the
sharpie_output
folder into theXamarin.Nuke
C# project - Adjust the definitions and ensure the project builds
- Create a PR to this repository