Skip to content

Commit

Permalink
[Paywalls V2] Carousel component (#4722)
Browse files Browse the repository at this point in the history
* This mostly works

* Some cleanup and todos

* Fixed

* BROKEN but need to rebase

* The rework happened

* This is feeling pretty good

* This works

* Fix lint

* Oops

* Or this

* Removed size and implemented top and bottom pager

* Added a todo and compile error

* Made page control optional and added optional size that defaults to fit fit

* Fixes from PR review

* Fix podlint
  • Loading branch information
joshdholtz authored Feb 17, 2025
1 parent d2e9127 commit b4c81d1
Show file tree
Hide file tree
Showing 10 changed files with 1,300 additions and 1 deletion.
20 changes: 20 additions & 0 deletions RevenueCat.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
03A98D362D244329009BCA61 /* UIConfigDecodingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03A98D352D244321009BCA61 /* UIConfigDecodingTests.swift */; };
03A98D382D2AC63B009BCA61 /* UIConfigProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03A98D372D2AC637009BCA61 /* UIConfigProvider.swift */; };
03C06FC52D4553C000600693 /* PresentedPartialsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03C06FC42D4553BB00600693 /* PresentedPartialsTests.swift */; };
03C06FC72D46742D00600693 /* PaywallCarouselComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03C06FC62D46742600600693 /* PaywallCarouselComponent.swift */; };
03C06FCA2D479C7400600693 /* CarouselComponentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03C06FC92D479C6D00600693 /* CarouselComponentView.swift */; };
03C06FCC2D479C7C00600693 /* CarouselComponentViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03C06FCB2D479C7600600693 /* CarouselComponentViewModel.swift */; };
03C72F6D2D32CDFB00297FEC /* FamilySharingTogglePreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03C72F6C2D32CDFB00297FEC /* FamilySharingTogglePreview.swift */; };
03C72F8D2D3311E300297FEC /* DisplayableColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03C72F8C2D3311D500297FEC /* DisplayableColor.swift */; };
03C72FBE2D34949600297FEC /* PaywallIconComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03C72FBD2D34949600297FEC /* PaywallIconComponent.swift */; };
Expand Down Expand Up @@ -1313,6 +1316,9 @@
03A98D352D244321009BCA61 /* UIConfigDecodingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIConfigDecodingTests.swift; sourceTree = "<group>"; };
03A98D372D2AC637009BCA61 /* UIConfigProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIConfigProvider.swift; sourceTree = "<group>"; };
03C06FC42D4553BB00600693 /* PresentedPartialsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PresentedPartialsTests.swift; sourceTree = "<group>"; };
03C06FC62D46742600600693 /* PaywallCarouselComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaywallCarouselComponent.swift; sourceTree = "<group>"; };
03C06FC92D479C6D00600693 /* CarouselComponentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CarouselComponentView.swift; sourceTree = "<group>"; };
03C06FCB2D479C7600600693 /* CarouselComponentViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CarouselComponentViewModel.swift; sourceTree = "<group>"; };
03C72F6C2D32CDFB00297FEC /* FamilySharingTogglePreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FamilySharingTogglePreview.swift; sourceTree = "<group>"; };
03C72F8C2D3311D500297FEC /* DisplayableColor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisplayableColor.swift; sourceTree = "<group>"; };
03C72FBD2D34949600297FEC /* PaywallIconComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaywallIconComponent.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2601,6 +2607,15 @@
path = RevenueCatUI;
sourceTree = "<group>";
};
03C06FC82D479C6300600693 /* Carousel */ = {
isa = PBXGroup;
children = (
03C06FC92D479C6D00600693 /* CarouselComponentView.swift */,
03C06FCB2D479C7600600693 /* CarouselComponentViewModel.swift */,
);
path = Carousel;
sourceTree = "<group>";
};
03C72FC12D349BAE00297FEC /* Icon */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -2673,6 +2688,7 @@
children = (
2C7457472CEA66AB004ACE52 /* ComponentsView.swift */,
7707A94A2CAD936A006E0313 /* Button */,
03C06FC82D479C6300600693 /* Carousel */,
88B1BAE62C813A3C001B7EE5 /* Image */,
03C72FC12D349BAE00297FEC /* Icon */,
2CC791542CC0452100FBE120 /* Packages */,
Expand Down Expand Up @@ -4978,6 +4994,7 @@
03C72FBD2D34949600297FEC /* PaywallIconComponent.swift */,
88E679462C7503C1007E69D5 /* PaywallStackComponent.swift */,
4D3BA4CB2D37D15E00668AFC /* PaywallTimelineComponent.swift */,
03C06FC62D46742600600693 /* PaywallCarouselComponent.swift */,
03E37BE92D30B32200CD9678 /* PaywallTabsComponent.swift */,
88AD01072C740CF400AA1F2B /* PaywallTextComponent.swift */,
2C2AEB3A2CA7209F00A50F38 /* PaywallPackageComponent.swift */,
Expand Down Expand Up @@ -6352,6 +6369,7 @@
B34605BD279A6E380031CA74 /* CallbackCacheStatus.swift in Sources */,
42F1DF385E3C1F9903A07FBF /* ProductsFetcherSK1.swift in Sources */,
805B60C97993B311CEC93EAF /* ProductsFetcherSK2.swift in Sources */,
03C06FC72D46742D00600693 /* PaywallCarouselComponent.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -6818,6 +6836,7 @@
2C7457482CEA66AB004ACE52 /* ComponentsView.swift in Sources */,
353756722C382C2800A1B8D6 /* URLUtilities.swift in Sources */,
57D8D5532D3EAF11009CB6ED /* CompatibilityLabeledContent.swift in Sources */,
03C06FCA2D479C7400600693 /* CarouselComponentView.swift in Sources */,
353FDC0F2CA446FA0055F328 /* StoreProductDiscount+Extensions.swift in Sources */,
03A98CF12D222F5F009BCA61 /* FallbackComponentPreview.swift in Sources */,
887A60862C1D037000E1A461 /* FooterHidingModifier.swift in Sources */,
Expand Down Expand Up @@ -6870,6 +6889,7 @@
353756672C382C2800A1B8D6 /* PurchaseInformation.swift in Sources */,
887A60682C1D037000E1A461 /* TemplateError.swift in Sources */,
887A60792C1D037000E1A461 /* UserInterfaceIdiom.swift in Sources */,
03C06FCC2D479C7C00600693 /* CarouselComponentViewModel.swift in Sources */,
35D41B432D403556000621C7 /* Store+Localization.swift in Sources */,
C3AD12BC2C6EA69D00A4F86F /* SubscriptionDetailsView.swift in Sources */,
887A60742C1D037000E1A461 /* Strings.swift in Sources */,
Expand Down
Loading

0 comments on commit b4c81d1

Please sign in to comment.