iOS view controller managing a native sheet container for Stripe PaymentSheet.
// Source: https://github.com/stripe/stripe-ios | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
//
// NativeSheetContainerViewController.swift
// StripePaymentSheet
//
// Created by George Birch on 9/30/26.
// Copyright © 2026 Stripe, Inc. All rights reserved.
//
import SafariServices
@_spi(STP) import StripeCore
@_spi(STP) import StripePayments
@_spi(STP) import StripePaymentsUI
@_spi(STP) import StripeUICore
import UIKit
/// A VC containing a content view controller and manages the layout of its SheetNavigationBar.
/// For internal SDK use only
@objc(STP_Internal_NativeSheetContainerViewController)
class NativeSheetContainerViewController: UIViewController, PaymentSheetContainer {
// Native nav
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key