View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Vídeos

Abrir menu Fechar menu
  • Coleções
  • Todos os vídeos
  • Sobre

Mais vídeos

  • Sobre
  • Código
  • What’s new in StoreKit and In-App Purchase

    Learn how to build and deliver even better purchase experiences using the App Store In-App Purchase system. We'll demo new StoreKit views control styles and new APIs to improve your subscription customization, discuss new fields for transaction-level information, and explore new testability in Xcode. We'll also review an important StoreKit deprecation.

    Capítulos

    • 0:00 - Introduction
    • 0:36 - Core API enhancements
    • 3:12 - Merchandise using SwiftUI
    • 15:35 - Test in Xcode
    • 21:06 - Update to StoreKit 2

    Recursos

    • Testing in-app purchases with StoreKit transaction manager in Xcode
    • Product.SubscriptionInfo.RenewalInfo
    • Transaction properties
    • Forum: App Store Distribution & Marketing
    • Message
    • StoreKit views
    • Introducing StoreKit 2
    • Setting up StoreKit Testing in Xcode
    • In-App Purchase
    • Original API for In-App Purchase
      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    WWDC24

    • Implement App Store Offers

    WWDC23

    • Meet StoreKit for SwiftUI
    • What’s new in StoreKit 2 and StoreKit Testing in Xcode

    WWDC22

    • What's new in StoreKit testing

    WWDC21

    • Meet StoreKit 2

    WWDC20

    • Introducing StoreKit Testing in Xcode
  • Buscar neste vídeo...
    • 4:26 - Destination Video Shop

      import StoreKit
      import SwiftUI
      
      struct DestinationVideoShop: View {
      
        var body: some View {
          SubscriptionStoreView(groupID: Self.subscriptionGroupID) {
            SubscriptionOptionGroupSet { product in
      				StreamingPassLevel(product)
            } label: { streamingPassLevel in
             	Text(streamingPassLevel.localizedTitle)
            } marketingContent: { streamingPassLevel in
              StreamingPassMarketingContent(level: streamingPassLevel)
              StreamingPassFeatures(level: streamingPassLevel)
            }
        	}
        	.subscriptionStoreControlStyle(.compactPicker, placement: .bottomBar)
      	}
      
      }
    • 9:06 - Subscription Option Groups - Tabs style

      SubscriptionStoreView(groupID: Self.subscriptionGroupID) {
        SubscriptionOptionGroupSet { product in
      		StreamingPassLevel(product)
        } label: { streamingPassLevel in
          Text(streamingPassLevel.localizedTitle)
        } marketingContent: { _ in
          StreamingPassMarketingContent()
      	}
      }
      .subscriptionStoreControlStyle(.compactPicker, placement: .bottomBar)
      .subscriptionStoreOptionGroupStyle(.tabs)
    • 9:20 - Subscription Option Groups - Links style

      SubscriptionStoreView(groupID: Self.subscriptionGroupID) {
        SubscriptionOptionGroupSet { product in
      		StreamingPassLevel(product)
        } label: { streamingPassLevel in
          Text(streamingPassLevel.localizedTitle)
        } marketingContent: { _ in
          StreamingPassMarketingContent()
      	}
      }
      .subscriptionStoreControlStyle(.compactPicker, placement: .bottomBar)
      .subscriptionStoreOptionGroupStyle(.links)
    • 13:41 - Custom control style implementation

      import StoreKit
      import SwiftUI
      
      struct BadgedPickerControlStyle: SubscriptionStoreControlStyle {
        func makeBody(configuration: Configuration) -> some View {
          SubscriptionPicker(configuration) { pickerOption in
            HStack(alignment: .top) {
              VStack(alignment: .leading) {
                Text(pickerOption.displayName)
                	.font(title2.bold())
                Text(priceDisplay(for: pickerOption))
                if pickerOption.isFamilyShareable {
                  FamilyShareableBadge()
                }
                Text(pickerOption.description)
              }
              Spacer()
              SelectionIndicator(pickerOption.isSelected)
            }
          } confirmation: { option in
            SubscribeButton(option)
          }
        }
      }
      
      struct DestinationVideoShop: View {
      
        var body: some View {
          SubscriptionStoreView(groupID: Self.subscriptionGroupID) {
            SubscriptionPeriodGroupSet { _ in
              StreamingPassMarketingContent()
            }
        	}
        	.subscriptionStoreControlStyle(BadgedPickerControlStyle())
      	}
      
      }

Developer Footer

  • Vídeos
  • WWDC24
  • What’s new in StoreKit and In-App Purchase
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines