SwiftBindings.Apple.TipKit
27.2.0
dotnet add package SwiftBindings.Apple.TipKit --version 27.2.0
NuGet\Install-Package SwiftBindings.Apple.TipKit -Version 27.2.0
<PackageReference Include="SwiftBindings.Apple.TipKit" Version="27.2.0" />
<PackageVersion Include="SwiftBindings.Apple.TipKit" Version="27.2.0" />
<PackageReference Include="SwiftBindings.Apple.TipKit" />
paket add SwiftBindings.Apple.TipKit --version 27.2.0
#r "nuget: SwiftBindings.Apple.TipKit, 27.2.0"
#:package SwiftBindings.Apple.TipKit@27.2.0
#addin nuget:?package=SwiftBindings.Apple.TipKit&version=27.2.0
#tool nuget:?package=SwiftBindings.Apple.TipKit&version=27.2.0
SwiftBindings.Apple.TipKit
Native .NET bindings for Apple's TipKit framework — in-app tips for surfacing app features. These are not Objective-C proxy wrappers; they use .NET's native Swift interop for direct, high-performance calls into Swift APIs from C#.
📖 Full usage guide → — the tip/rule/event/status model in C#, datastore configuration, display-frequency options, UIKit presentation, and why tips must be authored in a Swift companion.
Installation
dotnet add package SwiftBindings.Apple.TipKit
Requirements
- .NET 10 with Xcode 26 or 27, or .NET 11 with Xcode 27.2. Install the .NET workload released for your Xcode version (see Choosing .NET and Xcode).
- Target framework: Use versionless
net10.0-iosornet11.0-ios(or the matching-macos,-maccatalyst, or-tvosTFM). The package includes a build for each supported .NET and Xcode pairing, and NuGet restores the one matching your toolchain. Pinning an older platform version (for example,net10.0-ios18.0) fails restore withNU1202. The target framework sets the .NET platform version you compile against, not your app's deployment minimum. - Deployment minimum is separate — set your app's real minimum OS with
<SupportedOSPlatformVersion>(independent of the TFM above). Individual APIs that need a newer OS at runtime are gated by generated[SupportedOSPlatform]attributes; the C# compiler flags a call that isn't valid for your target. - macOS host for development
Usage
using TipKit;
// Configure the tip datastore at app startup
Tips.Configure();
// Build display-frequency options that gate tip presentation
var maxDisplay = new Tips.MaxDisplayCount((nint)3);
var ignoresFreq = new Tips.IgnoresDisplayFrequency(true);
// Reset stored donation/event state (e.g. for testing)
Tips.ResetDatastore();
Tips.Configure, TipView, PopoverTipView, Invalidate(reason:), the Tips.InvalidationReason enum, and the configuration-option types are all bound. Tips that display unconditionally — or whose display rule is declared in Swift — are fully supported from C#.
Documentation
- Usage guide (wiki) — full C# walkthrough of the binding surface
- Apple TipKit framework
Caveats
Tips.Rule.when(...) result-builder DSL is unreachable from C#
Swift authors compose Tips.Rule predicates with a result-builder DSL:
@Rule(Donations.self) { $0.count >= 3 }
// or:
Tips.Rule(Donations.self) { donations in donations.count >= 3 }
These entry points are marked @_alwaysEmitIntoClient in the Swift standard library. That attribute tells the compiler to inline the implementation into every caller rather than exporting a stable ABI symbol. The generator therefore sees no call target: there is nothing to P/Invoke, and no Swift shim we can produce from the C# side would route back to the inlined-away generic body.
This is an upstream ABI limitation, not a gap in the generator. Donation-tracking, parameter rules, and event-count rules built through the DSL are currently not accessible from C#. Tip registration, tip discovery, display, and dismissal (Tips.configure, TipView, PopoverTipView, .invalidate(reason:), etc.) are all fully supported.
Workaround
If your tips do not rely on the DSL — i.e. they display unconditionally or their display rule is declared in Swift — the bindings cover every surface you need. For DSL-based rules, you can ship a tiny Swift companion target that publishes concrete Tips.Rule values as public static let properties; those are ordinary stored-property symbols and bind cleanly.
Status
Tracked as a permanent limitation. We will revisit if Apple exports stable symbols for the DSL in a future SDK, or if we add a C# source generator that emits a Swift shim target.
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET's native Swift interop via the SwiftBindings SDK.
License
The bindings are MIT licensed. TipKit is part of the Apple SDK; refer to Apple's licensing for the underlying framework.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-ios26.0 is compatible. net10.0-ios27.2 is compatible. net10.0-maccatalyst26.0 is compatible. net10.0-maccatalyst27.2 is compatible. net10.0-macos26.0 is compatible. net10.0-macos27.2 is compatible. net10.0-tvos26.0 is compatible. net10.0-tvos27.2 is compatible. net11.0-ios27.2 is compatible. net11.0-maccatalyst27.2 is compatible. net11.0-macos27.2 is compatible. net11.0-tvos27.2 is compatible. |
-
net10.0-ios26.0
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-ios27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-maccatalyst26.0
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-maccatalyst27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-macos26.0
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-macos27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-tvos26.0
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-tvos27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net11.0-ios27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net11.0-maccatalyst27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net11.0-macos27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net11.0-tvos27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
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 |
|---|---|---|
| 27.2.0 | 98 | 11/30/2026 |
| 26.2.16 | 133 | 10/28/2026 |
| 26.2.15 | 139 | 9/22/2026 |
| 26.2.14 | 143 | 9/5/2026 |
| 26.2.13 | 142 | 9/2/2026 |
| 26.2.12 | 140 | 8/29/2026 |
| 26.2.11 | 136 | 8/24/2026 |
| 26.2.10 | 151 | 8/5/2026 |
| 26.2.9 | 149 | 7/31/2026 |
| 26.2.8 | 162 | 6/27/2026 |
| 26.2.7 | 146 | 6/15/2026 |
| 26.2.6 | 161 | 6/11/2026 |
| 26.2.5 | 148 | 6/1/2026 |
| 26.2.3 | 158 | 5/19/2026 |
| 26.2.1 | 142 | 5/3/2026 |