aboutsummaryrefslogtreecommitdiff
path: root/Captura/Data/SettingsStructs.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-08-02 10:30:51 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-08-02 10:30:51 +0200
commit377442f2f1f0f08bc525393c9bd1c84f159c5159 (patch)
treeab7f62cda14f1d85a30e65b130cf289f3a04947b /Captura/Data/SettingsStructs.swift
parent8e9321304ca80e9ada7ac01058a5f4603cb37fab (diff)
Add AppleScript support
Diffstat (limited to 'Captura/Data/SettingsStructs.swift')
-rw-r--r--Captura/Data/SettingsStructs.swift28
1 files changed, 0 insertions, 28 deletions
diff --git a/Captura/Data/SettingsStructs.swift b/Captura/Data/SettingsStructs.swift
deleted file mode 100644
index 16172ca..0000000
--- a/Captura/Data/SettingsStructs.swift
+++ /dev/null
@@ -1,28 +0,0 @@
-import Foundation
-
-enum OutputFormatSetting: Int {
- case gifOnly = 0
- case mp4Only = 1
- case all = 2
-
- init?(_ string: String) {
- switch(string) {
- case "gif":
- self = .gifOnly
- case "mp4":
- self = .mp4Only
- case "all":
- self = .all
- default:
- return nil
- }
- }
-
- func shouldSaveGif() -> Bool {
- return self == .gifOnly || self == .all
- }
-
- func shouldSaveMp4() -> Bool {
- return self == .mp4Only || self == .all
- }
-}