3 struct CapturaSettings {
4 static var frameRate: Int {
5 UserDefaults.standard.integer(forKey: "frameRate")
8 static var outputFormats: OutputFormatSetting {
9 OutputFormatSetting(rawValue: UserDefaults.standard.integer(forKey: "outputFormats")) ?? .all
12 static var shouldSaveMp4: Bool {
13 outputFormats.shouldSaveMp4()
16 static var shouldSaveGif: Bool {
17 outputFormats.shouldSaveGif()
21 static var shouldSendNotifications: Bool {
23 UserDefaults.standard.bool(forKey: "shouldSendNotifications")
26 UserDefaults.standard.setValue(newValue, forKey: "shouldSendNotifications")