-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make presentCustomerCenter's onDismiss param optional
- Loading branch information
1 parent
b0ba7ca
commit ec025b6
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Tests/APITesters/AllAPITests/RevenueCatUISwiftAPITester/CustomerCenterViewAPI.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// CustomerCenterViewAPI.swift | ||
// RevenueCatUISwiftAPITester | ||
// | ||
// Created by Will Taylor on 12/11/24. | ||
// | ||
|
||
import SwiftUI | ||
import RevenueCat | ||
import RevenueCatUI | ||
|
||
#if canImport(UIKit) && os(iOS) | ||
@available(iOS 15.0, macOS 12.0, tvOS 15.0, *) | ||
struct TestViewPlusPresentCustomerCenter: View { | ||
|
||
@State private var isPresented = false | ||
|
||
var body: some View { | ||
EmptyView() | ||
.presentCustomerCenter(isPresented: $isPresented) | ||
.presentCustomerCenter(isPresented: $isPresented, onDismiss: {}) | ||
.presentCustomerCenter( | ||
isPresented: $isPresented, | ||
customerCenterActionHandler: { _ in | ||
|
||
}, | ||
onDismiss: {} | ||
) | ||
} | ||
} | ||
#endif |