diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-07-27 22:32:10 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-07-27 22:32:10 +0200 |
| commit | a4e804275517af683afa1733e2db7c383c306f2b (patch) | |
| tree | 643eff7b3648aad15ce569eec0e1d7c9abddc00d /Captura/Data/SettingsStructs.swift | |
| parent | e834022c9b363804d36045892a305204f2019216 (diff) | |
Use framerate, control stop
Diffstat (limited to 'Captura/Data/SettingsStructs.swift')
| -rw-r--r-- | Captura/Data/SettingsStructs.swift | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Captura/Data/SettingsStructs.swift b/Captura/Data/SettingsStructs.swift new file mode 100644 index 0000000..99f407c --- /dev/null +++ b/Captura/Data/SettingsStructs.swift @@ -0,0 +1,15 @@ +import Foundation + +enum OutputFormatSetting: Int { + case gifOnly = 0 + case mp4Only = 1 + case all = 2 + + func shouldSaveGif() -> Bool { + return self == .gifOnly || self == .all + } + + func shouldSaveMp4() -> Bool { + return self == .mp4Only || self == .all + } +} |