WidgetKit.WidgetCenterProxy 10.0.0

dotnet add package WidgetKit.WidgetCenterProxy --version 10.0.0
                    
NuGet\Install-Package WidgetKit.WidgetCenterProxy -Version 10.0.0
                    
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="WidgetKit.WidgetCenterProxy" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WidgetKit.WidgetCenterProxy" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WidgetKit.WidgetCenterProxy" />
                    
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 WidgetKit.WidgetCenterProxy --version 10.0.0
                    
#r "nuget: WidgetKit.WidgetCenterProxy, 10.0.0"
                    
#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 WidgetKit.WidgetCenterProxy@10.0.0
                    
#: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=WidgetKit.WidgetCenterProxy&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WidgetKit.WidgetCenterProxy&version=10.0.0
                    
Install as a Cake Tool

WidgetCenterProxy

Description

Call WidgetCenter methods from iOS .NET (MAUI).

Usage

Add package reference in project file

<PackageReference Include="WidgetKit.WidgetCenterProxy" Version="10.0.0" />
new WidgetKit.WidgetCenterProxy().ReloadAllTimeLines();

Known problems

On Windows you might get problems with very long directory names. This is a known issue with xcframeworks. The causes and possible solutions are described here: https://github.com/AdamEssenmacher/GoogleApisForiOSComponents

Package nuget location:

https://www.nuget.org/profiles/jeroenber

Git repository

https://github.com/JeroenBer/WidgetCenterProxy

Prequisites

Install Objective sharpie

See https://learn.microsoft.com/en-us/dotnet/maui/ios/objective-sharpie/get-started?view=net-maui-10.0

do

dotnet tool install -g Sharpie.Bind.Tool

Add tools to the path.

To build

Run script:

./clean.sh

Run script:

./build.sh

Goto .NET Project directory:

cd WidgetCenterProxyBinder/WidgetCenterProxyBinder

Create the package:

dotnet pack

History

Changes 2026

  • Upgraded to .NET10.
  • Build with XCode 26.5.
  • Used new Objective.Sharpie tool.

Changes 2025

  • Upgraded to .NET9. Build with XCode 16.2.
  • Upgraded to xcframework (to be able to support M processor), "lipo" command no longer necessary
  • Added support for Arm64 (M processor) simulator
  • Shorten file paths (abbreviated to WCP (=WidgetCenterProxy)) due too long paths with xcframework
  • Add license/readme to package
  • Changed to a more logical package name "WidgetKit.WidgetCenterBinder" "com.hcsaba.WidgetCenterBinder.Net8"

Some help from the following examples: https://medium.com/@tema.denisoff/how-to-use-swiftui-components-in-maui-f43c54d2173c https://github.com/temamarvel/SwiftUI_To_MAUI/blob/main/Scripts/build.sh Fix xcframework: Set BUILD_LIBRARY_FOR_DISTRIBUTION to Yes in project settings: https://stackoverflow.com/questions/58805812/xcframework-does-not-contain-internal-frameworks

Original source

Call WidgetCenter.shared methods from Xamarin.

Created it based on the binding-swift walkthrough.

Forked from:

If you run build.sh you'll get WidgetCenterProxy framework, which will be used by WidgetCenterProxyBinder project. You can use WidgetCenterProxyBinder in your app to handle iOS14 widgets.

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

    • No dependencies.

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
10.0.0 192 8/7/2026
9.0.3 3,789 2/15/2025
9.0.2-alpha 176 2/15/2025