]>
Commit | Line | Data |
---|---|---|
1 | import Foundation | |
2 | ||
3 | enum OutputFormatSetting: Int { | |
4 | case gifOnly = 0 | |
5 | case mp4Only = 1 | |
6 | case all = 2 | |
7 | ||
8 | func shouldSaveGif() -> Bool { | |
9 | return self == .gifOnly || self == .all | |
10 | } | |
11 | ||
12 | func shouldSaveMp4() -> Bool { | |
13 | return self == .mp4Only || self == .all | |
14 | } | |
15 | } |