Skip to content

[iOS] NSInvalidArgumentException in BottomSheetViewController.navigationBarBlur #2230

@nicolasdevienne

Description

@nicolasdevienne

Describe the bug

Crash on iOS when presenting the Stripe PaymentSheet. The crash occurs inside BottomSheetViewController.navigationBarBlur.getter during viewDidLoad().

Stack trace

Fatal Exception: NSInvalidArgumentException

BottomSheetViewController.navigationBarBlur.getter (BottomSheetViewController.swift:56)
closure #1 in navigationBarBlur.getter (BottomSheetViewController.swift:61)
BottomSheetViewController.enableNavigationBarBlurInteraction() (BottomSheetViewController.swift:399)
BottomSheetViewController.viewDidLoad() (BottomSheetViewController.swift:371)
PaymentSheet.present(from:completion:) (PaymentSheet.swift:210)
StripeSdkImpl.presentPaymentSheet(options:resolver:rejecter:) (StripeSdkImpl.swift:247)

Expected behavior

Stripe bottom sheet should display correctly with the navigation bar blur.

Smartphone

  • Device: iPhone 16 Pro Max, ...
  • OS: 26
  • SDK version: 0.57.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions