-
Notifications
You must be signed in to change notification settings - Fork 52
Home
Russell Archer edited this page Jan 28, 2022
·
1 revision
-
Quick Start -
StoreHelper
tutorial -
Guide -
StoreHelper
andStoreKit2
in-depth -
Demo -
StoreHelper
Xcode 13 example project
StoreHelper
is a Swift Package Manager (SPM) package that enables developers to easily add in-app purchase support to iOS 15/macOS 12 SwiftUI apps.
Specifically, StoreHelper
provides the following features:
- Multi-platform (iOS and macOS) SwiftUI support enables users to purchase Consumable, Non-consumable and Subscription products
- Supports transaction validation, pending ("ask to buy") transactions, cancelled and failed transactions
- Supports customer refunds and management of subscriptions
- Provides detailed transaction information and history for non-consumables and subscriptions
- Support for direct App Store purchases of promoted in-app purchases
MIT license, copyright (c) 2022, Russell Archer. This software is provided "as-is" without warranty and may be freely used, copied, modified and redistributed, including as part of commercial software. See License for details.
StoreHelper
uses Apple's StoreKit2
, which requires iOS 15, macOS 12 and Xcode 13 or higher.
- Open your project in Xcode
- Select File > Add Packages...
- Paste the URL of the
StoreHelper
package into the search box: https://github.com/russell-archer/StoreHelper - Click Add Package
- Xcode will fetch the package from GitHub and then display a confirmation. Click Add Package
- Notice that the
StoreHelper
andswift-collections
packages have been added to the project.swift-collections
is a package dependency forStoreHelper
- If you expand the
StoreHelper
package you'll be able to see the source