From bbbbb4c89e3b39142455a1aaf905660723bf040c Mon Sep 17 00:00:00 2001 From: Scott Antonac Date: Mon, 28 Nov 2022 16:51:06 +1100 Subject: [PATCH 1/2] EIT-1889: add compact badge view and option for breakdown --- Afterpay.xcodeproj/project.pbxproj | 4 +++ .../Components/ComponentsViewController.swift | 2 +- .../images/compact-badge/Contents.json | 6 ++++ .../Contents.json | 12 +++++++ .../compact-badge-afterpay-black-on-mint.pdf | Bin 0 -> 2599 bytes .../Contents.json | 12 +++++++ .../compact-badge-afterpay-black-on-white.pdf | Bin 0 -> 2583 bytes .../Contents.json | 12 +++++++ .../compact-badge-afterpay-mint-on-black.pdf | Bin 0 -> 2596 bytes .../Contents.json | 12 +++++++ .../compact-badge-afterpay-white-on-black.pdf | Bin 0 -> 2585 bytes .../Contents.json | 12 +++++++ .../compact-badge-clearpay-black-on-mint.pdf | Bin 0 -> 2617 bytes .../Contents.json | 12 +++++++ .../compact-badge-clearpay-black-on-white.pdf | Bin 0 -> 2602 bytes .../Contents.json | 12 +++++++ .../compact-badge-clearpay-mint-on-black.pdf | Bin 0 -> 2614 bytes .../Contents.json | 12 +++++++ .../compact-badge-clearpay-white-on-black.pdf | Bin 0 -> 2600 bytes Sources/Afterpay/Views/CompactBadgeView.swift | 33 ++++++++++++++++++ .../Afterpay/Views/PriceBreakdownView.swift | 12 +++++-- 21 files changed, 150 insertions(+), 3 deletions(-) create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-mint.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-mint.imageset/compact-badge-afterpay-black-on-mint.pdf create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-white.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-white.imageset/compact-badge-afterpay-black-on-white.pdf create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-mint-on-black.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-mint-on-black.imageset/compact-badge-afterpay-mint-on-black.pdf create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-white-on-black.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-white-on-black.imageset/compact-badge-afterpay-white-on-black.pdf create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-mint.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-mint.imageset/compact-badge-clearpay-black-on-mint.pdf create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-white.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-white.imageset/compact-badge-clearpay-black-on-white.pdf create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-mint-on-black.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-mint-on-black.imageset/compact-badge-clearpay-mint-on-black.pdf create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-white-on-black.imageset/Contents.json create mode 100644 Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-white-on-black.imageset/compact-badge-clearpay-white-on-black.pdf create mode 100644 Sources/Afterpay/Views/CompactBadgeView.swift diff --git a/Afterpay.xcodeproj/project.pbxproj b/Afterpay.xcodeproj/project.pbxproj index f72d0885..fa0d4042 100644 --- a/Afterpay.xcodeproj/project.pbxproj +++ b/Afterpay.xcodeproj/project.pbxproj @@ -21,6 +21,7 @@ 4288AB7827BCB578009C9B69 /* PaymentButtonUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4288AB7727BCB578009C9B69 /* PaymentButtonUIView.swift */; }; 42927C39274209B600B26435 /* ShippingOptionUpdate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42927C38274209B600B26435 /* ShippingOptionUpdate.swift */; }; 42DA4F9826E0740500204E75 /* IntroText.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42DA4F9726E0740500204E75 /* IntroText.swift */; }; + 4509D351293473F500952DAD /* CompactBadgeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4509D350293473F500952DAD /* CompactBadgeView.swift */; }; 45144E7027FCEFA30061EBE8 /* LockupView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45144E6F27FCEFA30061EBE8 /* LockupView.swift */; }; 45144E7227FD10E00061EBE8 /* AfterpayAssetProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45144E7127FD10E00061EBE8 /* AfterpayAssetProvider.swift */; }; 45144E7427FD11470061EBE8 /* AfterpayBundleFinder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45144E7327FD11470061EBE8 /* AfterpayBundleFinder.swift */; }; @@ -96,6 +97,7 @@ 4288AB7727BCB578009C9B69 /* PaymentButtonUIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaymentButtonUIView.swift; sourceTree = ""; }; 42927C38274209B600B26435 /* ShippingOptionUpdate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShippingOptionUpdate.swift; sourceTree = ""; }; 42DA4F9726E0740500204E75 /* IntroText.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntroText.swift; sourceTree = ""; }; + 4509D350293473F500952DAD /* CompactBadgeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompactBadgeView.swift; sourceTree = ""; }; 45144E6F27FCEFA30061EBE8 /* LockupView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LockupView.swift; sourceTree = ""; }; 45144E7127FD10E00061EBE8 /* AfterpayAssetProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AfterpayAssetProvider.swift; sourceTree = ""; }; 45144E7327FD11470061EBE8 /* AfterpayBundleFinder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AfterpayBundleFinder.swift; sourceTree = ""; }; @@ -209,6 +211,7 @@ 66EE9BD624DCEC3D00A81C19 /* LinkTextView.swift */, 661CFDB52570E7F000D8A1E8 /* PaymentButton.swift */, 66483F3A24D7A164000BE6B5 /* PriceBreakdownView.swift */, + 4509D350293473F500952DAD /* CompactBadgeView.swift */, 4288AB7527BC8C84009C9B69 /* LayeredImageView.swift */, 4288AB7727BCB578009C9B69 /* PaymentButtonUIView.swift */, 45144E6F27FCEFA30061EBE8 /* LockupView.swift */, @@ -602,6 +605,7 @@ 666D334C24A48F5C00FCD464 /* ObjcWrapper.swift in Sources */, 55432830263A61C4005512E4 /* CombineWrapper.swift in Sources */, 42DA4F9826E0740500204E75 /* IntroText.swift in Sources */, + 4509D351293473F500952DAD /* CompactBadgeView.swift in Sources */, 45D406D127FE4B67009AA4EE /* LogoView.swift in Sources */, 157E88D125CBCA49007E54C4 /* Result+Fold.swift in Sources */, 55A2D307261BB36C00D8E23A /* Money.swift in Sources */, diff --git a/Example/Example/Components/ComponentsViewController.swift b/Example/Example/Components/ComponentsViewController.swift index 165cf20f..27bf81e3 100644 --- a/Example/Example/Components/ComponentsViewController.swift +++ b/Example/Example/Components/ComponentsViewController.swift @@ -178,7 +178,7 @@ private final class ContentStackViewController: UIViewController, PriceBreakdown priceBreakdown2.showInterestFreeText = false priceBreakdown2.logoColorScheme = .dynamic(lightPalette: .blackOnMint, darkPalette: .whiteOnBlack) priceBreakdown2.moreInfoOptions = MoreInfoOptions(modalLinkStyle: .moreInfoText) - priceBreakdown2.logoType = .lockup + priceBreakdown2.logoType = .compactBadge stack.addArrangedSubview(priceBreakdown2) let priceBreakdown3 = PriceBreakdownView() diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/Contents.json b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-mint.imageset/Contents.json b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-mint.imageset/Contents.json new file mode 100644 index 00000000..1a8b3aa6 --- /dev/null +++ b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-mint.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "compact-badge-afterpay-black-on-mint.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-mint.imageset/compact-badge-afterpay-black-on-mint.pdf b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-mint.imageset/compact-badge-afterpay-black-on-mint.pdf new file mode 100644 index 0000000000000000000000000000000000000000..bc318b0f9f3238f558d5c191cc7f466be99eb650 GIT binary patch literal 2599 zcma);2{e>lAHXeH8tbGelE+r5Va(VDBeFMHN2oz&VvKF9qnJ@4OGI{Mmn>x$Lqus( zUfEx3F|R1f-Xi<*4PSLSr}KU1ea=1i-v7PN^FR0go_o&kN}K8G%fjT8K+@E?vUQLm zAP;z6as?rg0MrQYK_EE;N{k^i2mk=6zKc5v@55-_aU{Gh-oeum4?1-UxEmKgxi7*^|SIOjIw-z}a0>B~a-`>tnQ?+35Dw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Oi z-woBQ=znYpKh4yzf|0ABnAiA?y($SS^e0fy2+7ON$Hok1I2Ue?`kq}L z{8F3=0Nb6=ck%Hh0g6BR|6h9=F&bPndH(R_t*9&B)EJDdc0`TY;XRQa<7U(1b_sEO zmD~TE&6DHk@?D@m(Xlj){91EfJK&IgD330)lvf_>o)Zrsor@VQ1A$%y%dzu1eKuLK z4Rg`F8Ow+bK6XNGSkm5o+o(r&{mG>w)Y^yc7^|z=Uh!7bi2hzmmLU%@!8mdIzQr_9(Ps)m_Kj9$$1soXcH#!Qx(Sa%dD?G-rb-WBbx|HiLNmAO6 z8Yj866}ti9&`&`$R7o?-%XlJa>&PYEp3eDnxo;J2>M$yN=R zkJ@H_mSUeKuH_%wqUm-0NpY9OPmBn}PmD159~{r4@lLyVe%_)G{}a~EQMPa);{n)z z=~@FeFaQp~?RLLFdwP-pnEbDQaK^*Q6Hwg^f4_SH*cw3>B*=UXhg8>}*8SnM9KQFI1b3ua=?&d$Wq$NuWiJ^GSxJ|ur1#`56`DheQJ KX+2YY(0>3TB7GtN literal 0 HcmV?d00001 diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-white.imageset/Contents.json b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-white.imageset/Contents.json new file mode 100644 index 00000000..9efee7cd --- /dev/null +++ b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-white.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "compact-badge-afterpay-black-on-white.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-white.imageset/compact-badge-afterpay-black-on-white.pdf b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-black-on-white.imageset/compact-badge-afterpay-black-on-white.pdf new file mode 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<#QC|$2jD62(GFUjM||;~kLd?{L|5ASjPdeEoC#hb^^)4Q6{J5EL$l*KkKIQ? z@KsOZOmb8DluQ@!N0)R9O$`tn9YSxG-Hd`J*&kPwLC#>xP9j3Fk?Cziubsy=b6fT7 zLyQa1w;A-&gq3P0}78mPEBj9a(j?7aRkHQ9=7Fdc0U3p2DE+2gi%J>Uip&OV{kYp|rrGxnHtU?bLp`@kBza*r>a(AtB9zAh6N7)C|g! zc|{bS+Ke?(L|$9(Zk~PJXWfmM3pEQ_yw@fY;)XqvvX<|aMyQs55?(2>K$N6GhGaJp z);g7#b8bx=wy`$TWFD78Iy3GKx$_a2kx|0>@e36mv22Tz z70vA*&|@QU3UwkylZDo@g%oN~6e0AjzUh~Hc;qO=?43Waj!VtJ(~VNSqKTSCotGNW z;~<>B$9F@pdfRT<7Rq+ZQVI+XSKoeNJ5>3po*mhsLrDgfB$j9Z6l!~b^*~&qtN?)M z=>jkS;_k|-S^8m3uxeKMo(J(W4*;T`4EC($ZL6`9{D zZ*TDjW!0aMk^ce?4E75hm0#$<5dR8~X=)3I115mph`2XDiZ=B8Lwld3Ul*p!?0Bcd z;8jA7w8*#H{t+(W`2Iq5K0!-9BdG2(Y~M6?!@!r?Skh?DhLt3zAWu*jcjXLDMFj}j zDT?F`b4Rt=BCeKQ<~^twrf6_XNvl* z-rphap!h)%srKWD!IXc)XlH@*+@bU1)`a|@thP_GrT2Lp0Q)aoTfh+pCXERkw|h4CWQvGmanV=R|Cn&pig5!{{R$2X_No} literal 0 HcmV?d00001 diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-mint-on-black.imageset/Contents.json b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-mint-on-black.imageset/Contents.json new file mode 100644 index 00000000..b349f554 --- /dev/null +++ b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-mint-on-black.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "compact-badge-afterpay-mint-on-black.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-mint-on-black.imageset/compact-badge-afterpay-mint-on-black.pdf b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-afterpay-mint-on-black.imageset/compact-badge-afterpay-mint-on-black.pdf new file mode 100644 index 0000000000000000000000000000000000000000..ff98ede7184c66c61d97d0907ce39dd9dd911dbf GIT binary patch literal 2596 zcma);2{e>lAHc~zmLWohJP2hUd$tlIOZK&4GL|v+WlV{Pv1AEjEEOrTe3l{WkR@d= z#k`RvA(XvHvU~LoUv)aC^L^)i&OP_u|Gm%spL>7LbI$LIn(69ELuHgeqNLA{c0r1O z9N_2d3DVF2WG|w8(O7pti85pX0suf(&%+yw!cbaoCoD=A<>Kdx0%>W10!};OQC1E>++HDwf@@Y_E$QoyGA9|#+%EbaE~G)b<>{doev%F1?j#U zl4}I2g z19{n$jX36uxf`+=q%2&^eIxiL<42fihy4t4FM&?2p5hWxO2MnaX#+t-BQwvg;p!{G z+wtsF{29nAPl{3K6c;fSvjLCNK@Ic4c*Rv$lq~LSS(ls-k-#`aanz-d8W8? znKU^06vcN27!;Q zgZnwhB}K_foMeAr-aL(^DrzOKl7OC2{;zx699eC<9|5Uw7>@4oN5cEjh4l$u8}KY$ zu9c+89ojj2nN%98Bryym0j44+sgoHtUULU2X^bmJjGXaml~QMvCNW%NPsNrQ)H)C~ zM6y(Y@)r!N0-4j*XD6*;jtc`{(4`YPPhy(!i%~;D5y3o#AMt#i0<8Jp)I4?2mlkLo zr9#(CY4O}4jSsy2&zd*R%U<7#a2}t9Xn3&ev)#)apknT(BCEPK{AZR} z2WKC&N6Ke$+21Tk`pYL;QwUk#BadF{H+>v-^d9SfAPVfI^-4Kgn3CXGak#h7LZr9$ zRta5Hh>teQTq#8Js=JI5PI~M`ew4jI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ut>1qQW+ z0XOYbewzDIS>;AJPU3zS<^0RUaxI=-OU`)cK+u;IM*THnIsE#n+Azn5v9y{s-}yp4 zd2}G~We%QKcjl&^3C0w9srk+@5rW7@nG%hY>H1eg-l_-+t=oSExsKyINkjB^l4#5? zD33Z5kFOK@eylS5pS;$-<|9EdL;(F?!0vzt8o&S;uk{tqp`kPYt@GnG?57+L1q|22 zpATbxK0cpU^ONWdIz5S=N~d28F=YC1rS2hqKmW<>oIr)i<%;ee@$ms|vQNq7o1wdO iBqc?b#wAg|ZZd*K2&YAd3!fi@HPiva;nt2e;Qs)uNqZ&$ literal 0 HcmV?d00001 diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-white.imageset/Contents.json b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-white.imageset/Contents.json new file mode 100644 index 00000000..f7188855 --- /dev/null +++ b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-white.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "compact-badge-clearpay-black-on-white.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-white.imageset/compact-badge-clearpay-black-on-white.pdf b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-black-on-white.imageset/compact-badge-clearpay-black-on-white.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e63609525483d3e6dfb6605289631865e0efa9f4 GIT binary patch literal 2602 zcma);2UJtZ8h~k%5Cv%>3dp7JlM)hI1O!PS6az$>5J3qcM0yKdSpp&iL;^t(aG$Qn-}M~c7{==lyvQV8R4PXSERHHMFN6%Pf@ zEuDQ_Wk;y$TtBdLh5T;mg<X+C9e`Mo|G!}Q%m;Pfj*p6RAal6p;# zS8qf+s?ahB1~OYvyle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K)Y6|61Pz6c|ICTF%n;K<5^UEm4JF-;c$U`x_Y9b-oO5Lt8)L8znk6oLa!7GGAU8d zTIHYYb##u_c)#trX1Xc$1=JaHcnL!EbN{Lgc57EQyN21V*^Yr}>1gjhup4T8chR1G zOv1^gwq&+>0Db-44)z7btFr?DiZTLV0F;1dmuw%g2iPV1{+dVodmaF47ZE@Npw@0) zwq)PEtY0Ok^IdXQ0Bmmn?HLqI1~k96|G)T7rkvdWSY7by#+Rh9KxPWg8JSRrmE@uN z&0&{iT+(R=t9PbP7pZ~zgWpa)MA@5BSL+;+5l1du;Wy@#4=Cd1IbN#L_aVFU*`)xI z{j4Ku_*`yk)0=Ao*&B#Y2YE>a@fm!=I~FxABR47}m=Esy;2bU^1JWFp5hFuUxn}&n z>6Y{zwjR3TKftYdFtH%t(V!?`ND^$LC35c7UW7THg=+AQuCgX$1;X&-r PhikC+qk@8oH5&3aRA+Cx literal 0 HcmV?d00001 diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-mint-on-black.imageset/Contents.json b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-mint-on-black.imageset/Contents.json new file mode 100644 index 00000000..13409328 --- /dev/null +++ b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-mint-on-black.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "compact-badge-clearpay-mint-on-black.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-mint-on-black.imageset/compact-badge-clearpay-mint-on-black.pdf b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-mint-on-black.imageset/compact-badge-clearpay-mint-on-black.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f977bfc46e9b361ce00dbc537c4c3f3589766d47 GIT binary patch literal 2614 zcma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oBfvonLhe$0WKDy+&H**Qf_7pGG@F_4ua2#~UaC z(Jscl?vaD)$=h9>8tk6=RfB5{td*`;HcZ}1N%bxy_AiFui1TsG8}!3>9+klTifbA4 zhtx+FL5lmZn>khlr?Q)d=i{15j6&H((v^%Yd%d9vl`wj_&C+1o-Lww5Ugx4v&5sHt zIntB2hF91l(@h%nlkCT)O;Z&al-LLAU0F-zG7~eF8PqVr2Tsd9)t7T8IMqrADFH$= zZq#}v|GetjT7r=II8F)z@2_ zuohx|X=zvJTYEjUH`IV%wV0JR$ zpc$jgQBg24XvlG5t4A7BvUIg?cfOWLEA>-vrMath;+HaavlH@O@!}RBRZ6~qphf|* z;1Z!B05){{jvg{Tm(3Z*Nq$8vr#sq%rP^-fl&$k5H+GYT8SCRE-y#`&#sEf1bkJClv^g{J8KRD%YC9M}T`PeZUfJXg#2{u7~#{h%%@b{D0VQ=q+ z)tp3n9G#v>Po~pZWO=6dfJo_*X`K;Jv$DyWLW#RTL7`5Gs^RSwa$)``0Rg@xd12K* ZH%X=WgwVo6c+bBR!}}rOa7za~ literal 0 HcmV?d00001 diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-white-on-black.imageset/Contents.json b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-white-on-black.imageset/Contents.json new file mode 100644 index 00000000..70c2be26 --- /dev/null +++ b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-white-on-black.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "compact-badge-clearpay-white-on-black.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-white-on-black.imageset/compact-badge-clearpay-white-on-black.pdf b/Sources/Afterpay/Resources/Assets.xcassets/images/compact-badge/compact-badge-clearpay-white-on-black.imageset/compact-badge-clearpay-white-on-black.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4cd626a3eb024f9501c7b3870d62865588d85c1a GIT binary patch literal 2600 zcma);2{e>lAHd0cWTG0|6yxiWt;B4$p&`o{V-m72(TFj&VVJ2V6eGzLZUIzu&2dkG& zlza#40Z1VHP%s#a1rWC6FbX3O&=(Flf&ldPSG$bRAeWU#3zn9hhK z`%=NoY_glpAF76%Yi8uXu=376UfMbXx)zsfN|1QFA_0TgW_tE+xnix7UWtbjo7u5- zGRs`WXp<7kyk_>o*SghUIPTDd z`|Ui_eA^d~>H{R=M8{7__^lb$WH70XZ&+1a%EQ=BQ!h=T5Jmb zyh9((85wW7{4dTx_1kTE^}C|Utt#yzT4HLLJ7{O(-R{Yc7qngHFFkzsrsbW*(E{a? zkKgzgkkCs0=omIS?6HIYyIUR48>-A4T0Xjp*++abzesU$ZjmXt4)sD6;V7NHoMV^V zGN=b+cFD5qFMRpdWy4)Wq07U}d@}_eumg^-aBPDhqPYs3S8?e=8Pq2X^Or*gw`q60 z2eoTNR+To?I%TrH0OuU+=VIu0k9ksL+QT|XB+=<|BN2~p?i1-blgOq|G_Hf+ z>iUtxnJzI&o_<69$s--nv@HhGN&Zs! z=UKeK#pebhECRAlQm>O>l#8&D_?$qw~>0=Lg>n|txMHr z?=6;1Q#9+!RC%H~dp^%JR+o@(Sq&j-%AMQ05+9}@dCe;4FRMKyxWnPpW4xkk_e3Jy zr)WDs-tp<%Pal`;4G(MCx? z^m-7l`rvmOQ{K%kNlJAKza${%kqNGfZsx2LuGO1hO+#x>^LXYOvSme%NtY5Tj0?0z z?|$m2-H-|kQT6~>9Xy7 zwIPL$r0o0EMz6(p!#qo06`2_)>+I(sc0O&i=T&`n&JDbhwa)KJLF@+J)n#&%$)@J( zckA;@0*{}Z<1%Z%+I;?I2{;3va2qBZ|-dT_v|Uasp|Q7z<@IEUVAi-muGu zNmM1e$VI-qvy~Q4+vwQ*0Y1HOb4c}daQD&sF#GN$z(1(};#hGA+oNd87ntbLNmDxQ zl7gR1b3I>tvt^j1`*xtv%JlO45efM%2?KCEDJ=a2X12)xi`6~3qTVy#6URpd3!N3Q zRHH@Slh08)VJ{-9KdHm|L%~OGoPeKNh-n+?QEmuzt}~!%6ht9t5>S|D!(wL-id$dH zs)qN~_a;9aF_gW{F^Em*8;EVphmL~DVg5giA?&TXW>qk&txz#2eM9}#7gj^vUn*LY zj}?<)?Zgm@2f$)i2ZRs87by$?grzxv0uX+_!dj>!;e@ajmLGWxe&qoW&c|qE0AYV9 z*oi@1%lgA{hQAzV2cXs_@IjGu2B7z&|Np&bl47#q0djNV-13>D5oIZ!2P{sPJHSBf zutA4074P)aO{FXE_HyA8t@O#>YD*Uad%E1+;@H-M3DP)GH5yk8q*b8ZGMnAp6+@%A z47gi%c;%j}nMmH4J%?G`Bu=?{>b#`P3X$jCd7)UT?B2~#PuJrXv^3W-Oy|q!T!J(; zeP71Pu4#=bHuh^}#usR@m#+HnlvlU-ld_)CPdJ!=00)Ko8y(%h(LovfBRu=gJp~K# zSj~MqQ_Z&`pdsU85q^e)ctOr#NN|C95HTIT7)_1o|Jstho4!6>2YDe`?R++`6FfNo zK}z6bsDTtYL_vsZ?jXQuc5O{xsG!m>#*pYq_;D(h=jkTp8o=N^}nEJ$jO#PK4YvlF!)Mb}>+m zynK8@hu^lp&pTsEO3i<0F*n|ay14e7%-!ET&B+~o}hs`?4VzF5% zELIv-A(hlGQJQ5gPz4&6WpIlUI|oQ45X3e)d%+B4XDBW%vYsve{P#W58NQJWW~6ZW PXk9}+u)4aHJs$iYFYs|F literal 0 HcmV?d00001 diff --git a/Sources/Afterpay/Views/CompactBadgeView.swift b/Sources/Afterpay/Views/CompactBadgeView.swift new file mode 100644 index 00000000..0472d15e --- /dev/null +++ b/Sources/Afterpay/Views/CompactBadgeView.swift @@ -0,0 +1,33 @@ +// +// BadgeView.swift +// Afterpay +// +// Created by Adam Campbell on 31/7/20. +// Copyright © 2020 Afterpay. All rights reserved. +// + +import Foundation +import UIKit + +public class CompactBadgeView: AfterpayLogo { + override public init(colorScheme: ColorScheme = .static(.blackOnMint)) { + super.init(colorScheme: colorScheme) + } + + required init?(coder: NSCoder) { + super.init(coder: coder) + } + + override internal func getImageName(brand: String, color: String) -> String { + return "compact-badge-\(brand)-\(color)" + } + + override internal func getImageColor() -> String { + var color = colorScheme.lightPalette.slug + if traitCollection.userInterfaceStyle == .dark { + color = colorScheme.darkPalette.slug + } + + return color + } +} diff --git a/Sources/Afterpay/Views/PriceBreakdownView.swift b/Sources/Afterpay/Views/PriceBreakdownView.swift index 4955073a..4dcc8ced 100644 --- a/Sources/Afterpay/Views/PriceBreakdownView.swift +++ b/Sources/Afterpay/Views/PriceBreakdownView.swift @@ -80,6 +80,7 @@ public final class PriceBreakdownView: UIView { public enum LogoType { case badge case lockup + case compactBadge var heightMultiplier: Double { switch self { @@ -87,6 +88,8 @@ public final class PriceBreakdownView: UIView { return 1.8 case .lockup: return 1 + case .compactBadge: + return 1 } } @@ -96,6 +99,8 @@ public final class PriceBreakdownView: UIView { return 1 case .lockup: return 1.2 + case .compactBadge: + return 1.2 } } } @@ -176,10 +181,13 @@ public final class PriceBreakdownView: UIView { self.isHidden = !Afterpay.enabled let logoView: AfterpayLogo - if logoType == .lockup { + switch logoType { + case .lockup: logoView = LockupView(colorScheme: logoColorScheme) - } else { + case .badge: logoView = BadgeView(colorScheme: logoColorScheme) + case .compactBadge: + logoView = CompactBadgeView(colorScheme: logoColorScheme) } let font: UIFont = fontProvider(traitCollection) From 4c97209900b388671ffeb6669fc52e4e329a0b81 Mon Sep 17 00:00:00 2001 From: Scott Antonac Date: Mon, 28 Nov 2022 16:52:54 +1100 Subject: [PATCH 2/2] EIT-1889: update docs for compact badge option --- docs/src/ui-components/price-breakdown.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/ui-components/price-breakdown.md b/docs/src/ui-components/price-breakdown.md index 1efc2897..03907c2e 100644 --- a/docs/src/ui-components/price-breakdown.md +++ b/docs/src/ui-components/price-breakdown.md @@ -82,7 +82,7 @@ Given the above, the price breakdown text will be rendered `or 4 payments of $## ## Logo Type Setting `logoType` is optional, will default to `.badge` and must be of type `LogoType`. -Can be either of `.badge` or `.lockup`. +Can be one of `.badge`, `.lockup` or `.compactBadge`. When setting color scheme on logo type of `.lockup`, only the foreground color will be applied. (See example) ```swift