Skip to content

History / How Bindings Map

Revisions

  • Tighten the 11.0.0 wiki wording and document SWIFTBIND133 A copy pass on the new toolchain, merge, AnyObject and Mono pages replaced shorthand and semicolons with plain US English. The merge section named SWIFTBIND133 with no Troubleshooting entry, so the check now has one with its fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    @justinwojo justinwojo committed Nov 28, 2026
  • Document how AnyObject members map and what they reject AnyObject members work as of this release after misreading memory in 0.20.x, and the pages didn't say what an object parameter accepts or that a wrong value throws ArgumentException. The wrapped shapes that are still not bound are listed next to the Any-typed container gap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    @justinwojo justinwojo committed Nov 27, 2026
  • Document Mono's Enum.GetValues failure on CaseTag in generic classes A generic Swift enum, or one declared inside a generic Swift type, binds its CaseTag inside a generic C# class, and Enum.GetValues throws InvalidCastException there on Mono. The entry gives a GetValuesAsUnderlyingType workaround checked on the iOS simulator and CoreCLR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    @justinwojo justinwojo committed Nov 27, 2026
  • Describe payload enums with the Tag/TryGet shape they actually emit Both pages still documented the older IsXxx/XxxValue accessors. The generator emits a nested CaseTag enum behind a Tag property plus a TryGetXxx extractor per payload case, so a reader following these examples wrote code that does not compile. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

    @justinwojo justinwojo committed Sep 5, 2026
  • Bring the wiki in line with the 0.19.0 release The public pages were still a 0.18.0 surface: Upgrading stopped one release short of two source-breaking rename waves, Troubleshooting described SWIFTBIND052 as a warning and omitted 061/066 and SB0010, and several guides taught a pack path or type conversion that 0.19.0 does not do. Upgrading is rewritten as a how-to with 0.19.0 first and earlier releases newest-to-oldest; the other pages get the matching factual refresh so a reader landing today is not given last-release rules.

    @justinwojo justinwojo committed Aug 12, 2026
  • Document struct write-back and the case-only numeric suffix A property returning a Swift struct hands back a copy, so writing through it is silently lost; the SB1003 warning and the local-copy idiom now have a Known Limitations section. The naming page also says plainly that the no-numeric-suffix rule covers overloads only, not the case-only scheme.

    Justin Wojciechowski committed Aug 4, 2026
  • Write down how a binding's names are chosen Consumers had no single place to look up why a member is called what it is, so a surprising name read as a bug. This adds the rules — async suffixing, the overload ladder and its refusal rung, the de-collision schemes and their precedence, the Objective-C conventions — plus the cases that look wrong and are not.

    Justin Wojciechowski committed Aug 4, 2026
  • Update docs for the 0.18.0 SDK release Refresh version references and examples for 0.18.0, expand Troubleshooting, Upgrading, and Supported-Features for the resilience-wave behavior shipped in this release, document the [String: Any] limitation, and add the new Platform & Toolchain Compatibility page explaining how Xcode/.NET/SDK/min-OS versions propagate to binding authors and consumers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

    @justinwojo justinwojo committed Jul 30, 2026
  • Update docs for 0.16.0 SDK + Apple 26.2.8 release Bump the SDK and Apple supplement version stamps across the examples (0.16.0 / 26.2.8) and document the 0.15.0+0.16.0 additions: the App Store native-packaging fix (signed framework, no SwiftSupport folder), C#-implemented async protocol requirements, AsyncThrowingStream, richer error/identity semantics, retain-cycle tooling, OS-gated PlatformNotSupportedException, --strict-inputs, and the new build-hook diagnostics. Add a Version Coexistence page explaining the bounded Runtime range and the load-time supported-window check. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

    @justinwojo justinwojo committed Jun 27, 2026
  • Update documentation for 0.12.0 SDK + Apple 26.2.4 release Apple framework support widens (MusicKit, CryptoKit HMAC on device, RealityKit class-bound existentials, WorkoutKit range alerts, Foundation KVO + AttributedString, FamilyActivityPicker). Real Intel-Mac / x64 RID support lands across osx-x64, maccatalyst-x64, iossimulator-x64, and tvossimulator-x64. AnyError is now a sealed reference type — see the Upgrading guide's source-breaking note for (any Error)? call-site changes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

    @justinwojo justinwojo committed Jun 1, 2026
  • Update documentation for 0.11.0 release Bumps SDK references to 0.11.0 and Apple framework packages to 26.2.3. Documents new capabilities: AsyncSequence lowering to IAsyncEnumerable<T> (await foreach), end-to-end Matter.framework auto-binding via --objc, typed-throws surfaced as SwiftException<TError>, expanded witness dispatch matrix (class/struct returns, throwing, mutating), and the IncludeSwiftBindingsRuntimeNative escape hatch. Expands Architecture, Supported-Features, Ownership, SwiftUI-Interop, and Troubleshooting with deeper reference material and a diagnostic checklist. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

    @justinwojo justinwojo committed May 18, 2026
  • Updating documentation for 0.9.0 release

    @justinwojo justinwojo committed May 3, 2026
  • Add Multi-Framework Libraries + Publishing pages and fix audit-flagged accuracy issues New pages: - Multi-Framework-Libraries: vendor SDK structuring, dependency mechanisms, two-pass build pattern - Publishing: package contents, pre-pack validation, local testing, NuGet release workflow Audit fixes (factual accuracy): - FAQ: GC finalization DOES run Swift deinit (only process-exit is skipped) - Known-Limitations: drop stale UnsafePointer<T> and String enum raw-value sections — pointers now map to IntPtr; frozen string raw-value enums emit C# enums with ToRawValue/FromRawValue extensions that preserve real values - How-Bindings-Map + Supported-Features: refresh enum projection examples - Getting-Started: show versioned SDK reference with {version} placeholder - Customization + Publishing: drop the "also add SwiftFrameworkDependency for siblings" advice — ProjectReference alone is sufficient (SDK auto-discovers) - Troubleshooting: rewrite SWIFTBIND035 description (NuGet pack TFM resolution, not version metadata); rename SWIFTBIND10x headings to colon form for stable anchors - SB1001 severity corrected to Info (not Warning) across FAQ, Known-Limitations, NativeAOT-Deployment, Troubleshooting - Customization: add missing --skip-thunk-compilation and --compile-bridge-only CLI options - FAQ: fix two broken anchor links (#swiftbind101-static-xcframework-detected, #binding-report) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    @justinwojo justinwojo committed Apr 8, 2026
  • Update wiki: accurate calling convention architecture, real library stats, path forward - Reframe calling convention docs around the root cause: .NET's CallConvSwift only supports blittable types, driving ~67% of P/Invokes through @_cdecl wrappers (averaged across 51 third-party library bindings) - Three-tier breakdown: non-blittable types (~50%), inexpressible ABI patterns (~15%), runtime bugs (~5%) - Document path forward: non-blittable CallConvSwift support would drop wrapper rate from ~67% to ~20% - Add NativeAOT float struct HFA bug (JIT register allocation, not lowering) - Update VWT Destroy architecture (per-type @_cdecl wrappers eliminated) - Update SafeHandle async as Mono-only - Update runtime test count (694 total, 647 passing) - Remove redundant Non-Blittable and Swift Wrapper Escape Hatch sections - Add FAQ.md, update all pages for consistency Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    @justinwojo justinwojo committed Mar 19, 2026
  • Fix wiki internal links: remove .md extension GitHub wiki links must omit the .md extension, otherwise they resolve to raw file URLs instead of rendered wiki pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

    @justinwojo justinwojo committed Mar 12, 2026
  • Add full documentation to wiki Migrated all user-facing docs from the main repo's docs/ directory: Getting Started, Supported Features, How Bindings Map, SwiftUI Interop, Customization, Troubleshooting, Known Limitations, NativeAOT Deployment, Ownership, Architecture, and sidebar navigation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

    @justinwojo justinwojo committed Mar 12, 2026