-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSortOption.swift
41 lines (37 loc) · 862 Bytes
/
SortOption.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// SortOption.swift
//
// Created by Speedyfriend67 on 27.06.24
//
import Foundation
enum SortOption: CaseIterable {
case name, date, modified, size, reverseName
var title: String {
switch self {
case .name:
return "Name"
case .date:
return "Creation Date"
case .modified:
return "Modification Date"
case .size:
return "Size"
case .reverseName:
return "Reverse Name"
}
}
var icon: String {
switch self {
case .name:
return "textformat"
case .date:
return "calendar"
case .modified:
return "clock"
case .size:
return "arrow.up.arrow.down.square"
case .reverseName:
return "textformat.size"
}
}
}