-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds 2 new modes: `.square` and `.banner`: ![iOS16-testSquarePaywall 1](https://github.com/RevenueCat/purchases-ios/assets/685609/5d1a0a52-e02b-4877-90ac-fdeb2dcea058) ![iOS16-testBannerPaywall 1](https://github.com/RevenueCat/purchases-ios/assets/685609/a9f208d8-f920-4abd-a914-1dd86e940b1a) ------- I've updated `Example1Template` to support both as an example, and added that as snapshot tests. This also adds a new constructor to `PaywallView` that doesn't require passing an `Offering` or `PaywallData`, it automatically loads that from `Purchases.shared`. With that, embedding these mini-paywalls is trivial: ```swift struct MyApp: View { var body: some View { MyOtherViews() if !customerInfo.hasPro { PaywallView(mode: .card) } } } ``` I've added these as examples to the testing app: ![simulator_screenshot_84270E1A-F7C6-4C5D-8773-F4F2E646CB0F](https://github.com/RevenueCat/purchases-ios/assets/685609/e368cab3-55af-4a87-88aa-b678deb5d2e5)
- Loading branch information
Showing
11 changed files
with
432 additions
and
77 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
Oops, something went wrong.