Repository navigation
Releases
Releases · kylehughes/swift-entitlements
2.0.1
Documentation
- Fixed the macOS AppKit
AppDelegate.purchaseExport(in:)example inREADME.mdtoawait NSAlert.purchaseError(error).beginSheetModal(for: window). - Clarified in
README.mdandEntitlementsUI.mdwhen to importEntitlementsalongsideEntitlementsUI(including.preview(...)underMemberImportVisibility). - Clarified public API doc comments for
EntitlementAuthority.isPurchasing/isPurchasing(_:),EntitlementAuthority.preview(...)initial state,EntitlementAuthority.products,EntitlementRequirement.init(_:or:),EntitlementSubscriptionStatus.RenewalInfo.init, andView.onInAppPurchaseCompletion(...)handling of.unverifiedresults. - Curated
StoreKit/TransactioninEntitlements.doccand expandedEntitlementsUI.docc's overview of SwiftUI, StoreKit, UIKit, and AppKit extension surfaces.
2.0.0
Breaking Changes
EntitlementsUIno longer re-exportsEntitlementsvia@_exported public import Entitlements. Modular apps that define their ownEntitlementAuthoritytypealias no longer collide in SwiftUI views or#Previewblocks; files that reference coreEntitlementstypes directly should importEntitlementsalongsideEntitlementsUI. (Entitlementscontinues to re-exportAsyncResult.)
Added
- Labeled designated initializers
Entitled.init(entitlement:),EntitledFeature.init(feature:), andEntitledCapability.init(capability:)so constrained app extensions defining concreteinit(_:)defaults can delegate without recursing. ProductView(for:)initializers acceptingEntitled<Entitlement>.ResolverandEntitledFeature<Feature>.Resolveracross all four icon and placeholder shapes, matchingPurchaseAction.
Documentation
- Documented Swift 6.4 typed-throws inference ergonomics for
PurchaseAction(plaindo { ... } catchinside namedasyncmethods vs.do throws(EntitlementPurchaseError)inside inlineTaskclosures).
1.0.0
Added
Entitlements: Type-safe StoreKit entitlement modeling (StoreProductIdentifier,StoreSubscriptionGroupIdentifier,StoreEntitlement,EntitlementRequirement,EntitlementFeature,EntitlementCapability),@MainActor/@ObservableEntitlementAuthoritywith reconciliation, provenance, launch-seeded and liveEntitlementSubscriptionStatus,Storefront.updatesproduct refreshes, app-owned.cached(...)/.ephemeral(...)configuration, typedTransactionhelpers, and inert#if DEBUG.preview(...)authorities.EntitlementsUI: SwiftUI property wrappers (@EntitledFeature,@Entitled,@EntitledCapability), counted multi-window.entitlementAuthority(_:)lifecycle mounting, typedProductView,StoreView, andSubscriptionStoreViewinitializers, typed-throwsPurchaseAction, UIKit, and AppKit purchase helpers,.onInAppPurchaseCompletion(...), localized error alerts across 38 locales, subscription management, refund requests, and OS 27.0+ offer-code redemption helpers.- Documentation & Packaging: MIT license, DocC catalogs for
EntitlementsandEntitlementsUI, Swift Package Index configuration, StoreKit semantics reference, and Swift 6.4 support across iOS, macOS, tvOS, watchOS, and visionOS 26.0+.