Add Hidden media album

This commit is contained in:
Ilya Laktyushin 2022-03-01 19:05:47 +04:00
parent 0ce318b205
commit 552c518f36
5 changed files with 109 additions and 4 deletions

View File

@ -20,6 +20,7 @@ class MediaGroupsAlbumItem: ListViewItem, ListViewItemWithHeader {
case animated case animated
case depthEffect case depthEffect
case livePhotos case livePhotos
case hidden
var image: UIImage? { var image: UIImage? {
switch self { switch self {
@ -43,6 +44,8 @@ class MediaGroupsAlbumItem: ListViewItem, ListViewItemWithHeader {
return UIImage(bundleImageName: "Chat/Attach Menu/Portrait") return UIImage(bundleImageName: "Chat/Attach Menu/Portrait")
case .livePhotos: case .livePhotos:
return UIImage(bundleImageName: "Chat/Attach Menu/LivePhoto") return UIImage(bundleImageName: "Chat/Attach Menu/LivePhoto")
case .hidden:
return UIImage(bundleImageName: "Chat/Attach Menu/Hidden")
} }
} }
} }

View File

@ -105,9 +105,9 @@ private enum MediaGroupsEntry: Comparable, Identifiable {
case .smartAlbumBursts: case .smartAlbumBursts:
icon = .bursts icon = .bursts
case .smartAlbumDepthEffect: case .smartAlbumDepthEffect:
icon = .selfPortraits
case .smartAlbumLivePhotos:
icon = .depthEffect icon = .depthEffect
case .smartAlbumLivePhotos:
icon = .livePhotos
case .smartAlbumPanoramas: case .smartAlbumPanoramas:
icon = .panoramas icon = .panoramas
case .smartAlbumScreenshots: case .smartAlbumScreenshots:
@ -120,6 +120,8 @@ private enum MediaGroupsEntry: Comparable, Identifiable {
icon = .timelapses icon = .timelapses
case .smartAlbumVideos: case .smartAlbumVideos:
icon = .videos icon = .videos
case .smartAlbumAllHidden:
icon = .hidden
default: default:
icon = nil icon = nil
} }
@ -248,7 +250,8 @@ public final class MediaGroupsScreen: ViewController {
.smartAlbumSelfPortraits, .smartAlbumSelfPortraits,
.smartAlbumSlomoVideos, .smartAlbumSlomoVideos,
.smartAlbumTimelapses, .smartAlbumTimelapses,
.smartAlbumVideos .smartAlbumVideos,
.smartAlbumAllHidden
] ]
if #available(iOS 11, *) { if #available(iOS 11, *) {
supportedAlbums.append(.smartAlbumAnimated) supportedAlbums.append(.smartAlbumAnimated)

View File

@ -1,7 +1,7 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "Video.pdf", "filename" : "videocamera_30.pdf",
"idiom" : "universal" "idiom" : "universal"
} }
], ],

View File

@ -0,0 +1,99 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 3.000000 7.000000 cm
0.000000 0.000000 0.000000 scn
0.435974 13.815962 m
0.000000 12.960315 0.000000 11.840210 0.000000 9.600000 c
0.000000 6.400000 l
0.000000 4.159790 0.000000 3.039685 0.435974 2.184038 c
0.819467 1.431390 1.431390 0.819468 2.184038 0.435974 c
3.039685 0.000000 4.159790 0.000000 6.400000 0.000000 c
10.599999 0.000000 l
12.840210 0.000000 13.960315 0.000000 14.815962 0.435974 c
15.568610 0.819468 16.180532 1.431390 16.564026 2.184038 c
17.000000 3.039685 17.000000 4.159790 17.000000 6.400000 c
17.000000 9.600000 l
17.000000 11.840210 17.000000 12.960315 16.564026 13.815962 c
16.180532 14.568610 15.568610 15.180532 14.815962 15.564026 c
13.960315 16.000000 12.840210 16.000000 10.600000 16.000000 c
6.400000 16.000000 l
4.159790 16.000000 3.039685 16.000000 2.184038 15.564026 c
1.431390 15.180532 0.819467 14.568610 0.435974 13.815962 c
h
24.993134 13.144460 m
24.920448 13.905111 24.279696 14.500000 23.500000 14.500000 c
23.175446 14.500000 22.859644 14.394733 22.600000 14.200000 c
18.799999 10.600000 l
18.667856 10.491791 l
18.244949 10.114210 18.000000 9.572287 18.000000 9.000000 c
18.000000 7.000000 l
18.007282 6.829359 l
18.055601 6.264485 18.342171 5.743371 18.799999 5.400000 c
22.600000 1.799999 l
22.719688 1.718817 l
23.371820 1.320574 24.232182 1.476244 24.700001 2.100000 c
24.894733 2.359645 25.000000 2.675445 25.000000 3.000000 c
25.000000 13.000000 l
24.993134 13.144460 l
h
f*
n
Q
endstream
endobj
3 0 obj
1496
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 30.000000 30.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000001586 00000 n
0000001609 00000 n
0000001782 00000 n
0000001856 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
1915
%%EOF