]> git.r.bdr.sh - rbdr/captura/blob - Captura/Data/SettingsStructs.swift
99f407c256a4da3d4c9bb2c9864c6e353f836e6e
[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 }