]> git.r.bdr.sh - rbdr/captura/blob - Captura/Data/SettingsStructs.swift
Separate some logic out of main app
[rbdr/captura] / Captura / Data / SettingsStructs.swift
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 }