What problem does it solve?
Manually implementing StoreKit 2 subscription offers requires writing repetitive boilerplate code for eligibility checks, offer presentation, and transaction handling, which is time-consuming and error-prone for iOS and macOS developers building subscription-based apps.
Core Features & Use Cases
- Multi-Offer Type Support: Generates code for all four Apple subscription offer types: introductory offers (free trials, discounted first periods), promotional offers for targeted user discounts, redeemable offer codes, and win-back offers for lapsed subscribers.
- End-to-End Logic: Includes built-in eligibility verification for each offer type, proper transaction handling, and support for server-side promotional offer signature generation.
- Optional UI Components: Produces ready-to-use SwiftUI views for contextual offer banners and offer code redemption flows.
- Use Case: A developer building a subscription-based macOS app can use this skill to generate all required StoreKit 2 code for a 7-day free trial, 50% off win-back discount for lapsed users, and a redeemable offer code campaign in minutes instead of writing hundreds of lines of code from scratch.
Quick Start
Use the subscription-offers skill to generate complete StoreKit 2 implementation code for all subscription offer types including eligibility checks, offer presentation, and transaction handling for your iOS or macOS subscription app.