From e2d4de1f416ff6b398b14107811fb73e2a489670 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 6 Jul 2023 16:41:55 -0700 Subject: [PATCH] Rotate the pin image on the swipe action --- .../App/Views/Home/HomeFeedViewIOS.swift | 3 +-- .../Sources/Views/Images/Images.swift | 2 ++ .../_tab_highlights.imageset/Contents.json | 21 ++++++++++++++++ .../HighlighterCircle.png | Bin 0 -> 1270 bytes .../_tab_library.imageset/BookOpen.png | Bin 0 -> 482 bytes .../_tab_library.imageset/Contents.json | 21 ++++++++++++++++ .../BookmarksSimple.png | Bin 0 -> 707 bytes .../_tab_subscriptions.imageset/Contents.json | 21 ++++++++++++++++ .../pin-rotated.imageset/Contents.json | 23 ++++++++++++++++++ .../pin-rotated.imageset/pin.fill 1.png | Bin 0 -> 315 bytes .../pin-rotated.imageset/pin.fill 2.png | Bin 0 -> 747 bytes .../pin-rotated.imageset/pin.fill.png | Bin 0 -> 496 bytes 12 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/Contents.json create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/HighlighterCircle.png create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/BookOpen.png create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/Contents.json create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_subscriptions.imageset/BookmarksSimple.png create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_subscriptions.imageset/Contents.json create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/Contents.json create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 1.png create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 2.png create mode 100644 apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill.png diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index 6c731356b..cb5df3594 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -545,8 +545,7 @@ struct AnimatingCellHeight: AnimatableModifier { viewModel.pinItem(dataService: dataService, item: item) }, label: { VStack { - Image(systemName: "pin.fill") - .rotationEffect(Angle(degrees: 180)) + Image.pinRotated Text("Pin") } }).tint(Color(hex: "#0A84FF"))) diff --git a/apple/OmnivoreKit/Sources/Views/Images/Images.swift b/apple/OmnivoreKit/Sources/Views/Images/Images.swift index 361568aac..267994739 100644 --- a/apple/OmnivoreKit/Sources/Views/Images/Images.swift +++ b/apple/OmnivoreKit/Sources/Views/Images/Images.swift @@ -14,4 +14,6 @@ public extension Image { static var tabSubscriptions: Image { Image("_tab_subscriptions", bundle: .module).renderingMode(.template) } static var tabLibrary: Image { Image("_tab_library", bundle: .module).renderingMode(.template) } static var tabHighlights: Image { Image("_tab_highlights", bundle: .module).renderingMode(.template) } + + static var pinRotated: Image { Image("pin-rotated", bundle: .module) } } diff --git a/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/Contents.json b/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/Contents.json new file mode 100644 index 000000000..520c52b3f --- /dev/null +++ b/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "HighlighterCircle.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/HighlighterCircle.png b/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/HighlighterCircle.png new file mode 100644 index 0000000000000000000000000000000000000000..e71fa3e49684ae007847c199051b56db27a8e361 GIT binary patch literal 1270 zcmV6Mgv5+XbmEwlXU&n_&L=;o%==)DVqGGua0ZJR8GZ zY7F5j<@cMAuTA>oWZ1(W8y_RyM5w7!(gBHoVH)miraRFyP4f*YeN#$;>8RiE+)Pn$ zE-$sGZ{GawQbklIZQCPbYwN!O4(%q%!d6eE^gddaRmoQ0zaO?Wjd+iQmIQ2GSubDi zkE`rai8K>_^yvSI5VW26`BVtcu1YqI!C+uQ4;R-ZFS-W@d*@|qE0I1v9y$?WmagZC zr>|b^PiRGexS^D8W7vy+o6l*dZ0}OigTe4fsf7(QVHex(K)No~0GkACx+kS@Eo;w8 zKZj6k2<0gJI=#Hq9~arUC_4=HcM%eX8O$HoAsnt}GVS<4A+g7ECp{Mz{ER|7#|um> zYkwziUr7bfG% zM2-&+_dZfXvVoS0!512L<=JwLJfga!lZ&LhvZw$YY_cUQCVa8jEm8&W1!U6*zA2N1 zKvhYk}@A$W)_H!qb#y;UpsZZjOS558tXb8RVIxn)``Z5a;1JViKb*DgzKik z+0HNjj0ekxM@S8yi>CC5L4}5kb;V2%T0$=u2bmWJNOM9oz5( z3&59m;Md)v++sG{G<4lxjA7qjZ|s-;;rhi>Eh<1Fpv3c_&QbaU!kxsj9{l>34(j1>FN!%E`hxFNMhU(_CRw zC~c^z7pU!S5%f}m2nerpmX|{0l1@t-YWs)o5TQ2;%Pp>8X8pXmg%OdZohX5jCVm>x z9f0$9NOll?_kAiX?FvZ;J&idRm|=day0=Z7T`Hm<2dL<>pO&@CN^=i>W6zV?Uq5$}#QCxWozj(&ES8yYx5}bg4an?P*224t zQQMss1(>jZ-9bd`E$hz!*w3m`?Z@X)1Ee}aX)FR0cTYjbz&w+J2$&I|xByoDx+PlU zraDWV`*83sPj0qvOOI_tHeOA)08TTx|BUUnh4A^`7b&T71D!L+`RA*vjd7h`^u2;@ g_&#%%HP#669py_N)@G5RfB*mh07*qoM6N<$f`+I{#sB~S literal 0 HcmV?d00001 diff --git a/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/BookOpen.png b/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/BookOpen.png new file mode 100644 index 0000000000000000000000000000000000000000..e512b518aed8c2aa92d7242b3279ca2ebc006516 GIT binary patch literal 482 zcmV<80UiE{P)t5 z!!Q(v|3us#GeS0?Y*03!6Tk+*8;X!fUl5OU0>T8a0b&Bm1{oo*R4C@yDPWT#XmV_| z)%he_j^kKge2JU`2!bF80y9yo=28t&V~GEvP+=F3$fNSlw#)Vnl-MzSS9YZVzh=NH!akp8Cbxh#Icue2vbIus%u3Xu+l zNQXkCLm|?k5a~Gy9sZjmsq%9)-2y*}`NhiAGnJ3w0Uy$u!900kBi3|1~W?$KPXhMtn*>Biy(lw+I~QPuvVgRJy|AI7dNgLSZwOndFiFCBRtES`@*7yjE71q@&Jisr#XEt%Ok!u=h5AaJjapXhV_2={gIfOOl Y16UB2*7Vc+MtF{qZtBx00x8M$zh3h7<&!c;9tV<=%#9wlIW|e zRDfoL5IzcjziEvH3NQv!&HkAprqKd8 zb{sxI183m6*^lAy`WQVx_nv7Y;B&OI9&{oL$zVH9G7O*zZDsUp4zA0@t zV~oc_u<>Ioh{Mo}peD6znraodTg}Csb1TN|{$tJJ3(Rmhz=r&`azZ=wqHDn_DAct0 z4v_DL;o(LvnY?DkvR#>4m8I$FF$#hs=_75G^_S%`Q$Z@zoIhGuMYDO0&S0wFb(2zQ p<@wTL+aB0h$`h_!7srqa#<`Ptd7BLcTGyvA6&Nh>VG^3r zeDxaDIs{UDDaxS}`p5&|CJmH&&=YnRht!C_1j;kAcc=<0%7X6DYE{#{Sd={FS>KM&M)xI*Ca&o0S$kH~S(-QJ{QrgL#dnEB9sAz0?t=T= z`I*n(E3Ynm`1{#))zw;JcOptZ6@|ZH`{kUUsq|E7We{8Z5w`^gB_j$h0R6_`>FVdQ I&MBb@02*d{wg3PC literal 0 HcmV?d00001 diff --git a/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 2.png b/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 2.png new file mode 100644 index 0000000000000000000000000000000000000000..2ca42390a5df27decfb0fa955154e8e280b74a72 GIT binary patch literal 747 zcmVXUNK9K8(7UL(Pt@#`P8fpgpsONSDXf>tABOVJpjiwOZBCK%DhCd=E4kRr54W)0 zGB#U!?DAjd`6hZ3z<0zY6T3$!Xh+*A+ul$d=Bj^kk}{*G*p0mWggB{W91o{{8&PFL zee_B-Z7R9!-sg}(6S={fdfm8yBTm}`QizCnu~#Wt7;Z7LN_AUU+)dDTrY>Hjkj zCzQq{p&i0bR7XM#b=bV~`|+%s3`5Rmt=F%Pt1b9vGUWX6p{!vYUu5_iV(7~S^Zh002ovPDHLkV1kl%UseDB literal 0 HcmV?d00001 diff --git a/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill.png b/apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill.png new file mode 100644 index 0000000000000000000000000000000000000000..93ac53ea5a7f3bee9cc3d66fb2fb70efd9acab1b GIT binary patch literal 496 zcmVhL0S)PgY?x75?IMp$^c8gf{MeHs`EE|rHv8TU6Zu(#f!oE@}OaD5=; z&QIsOg`QrqcC(k=UOq)Wf;3ID8#RE3*&050g3k31qG$sRjKk)Ywh~L}w2EgUJ?r7L z%1ck2l7D)}toE#n%hezHz$5C^^e<~o;+Y!J2w$qzjHA`F9$Q+54f8JIfe|4g zwR8R)b68<4OV2W1PzvMEho=pX8u0XgKo+RMzysQD=}-b=2vTNLgaxGx6m^4lixETK zQG#r+