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
}