mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Rotate the pin image on the swipe action
This commit is contained in:
parent
982349cef2
commit
e2d4de1f41
12 changed files with 89 additions and 2 deletions
|
|
@ -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")))
|
||||
|
|
|
|||
|
|
@ -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) }
|
||||
}
|
||||
|
|
|
|||
21
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/Contents.json
vendored
Normal file
21
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_highlights.imageset/Contents.json
vendored
Normal file
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/BookOpen.png
vendored
Normal file
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/BookOpen.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 482 B |
21
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/Contents.json
vendored
Normal file
21
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_library.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "BookOpen.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 707 B |
21
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_subscriptions.imageset/Contents.json
vendored
Normal file
21
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/_tab_subscriptions.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "BookmarksSimple.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
23
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/Contents.json
vendored
Normal file
23
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "pin.fill 1.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "pin.fill.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "pin.fill 2.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 1.png
vendored
Normal file
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 1.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 315 B |
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 2.png
vendored
Normal file
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill 2.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 747 B |
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill.png
vendored
Normal file
BIN
apple/OmnivoreKit/Sources/Views/Images/Images.xcassets/pin-rotated.imageset/pin.fill.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 496 B |
Loading…
Reference in a new issue