import SwiftUI class Settings: ObservableObject { #if DEBUG @AppStorage("detailViewType") var detailViewType: PostFileType = .compressed #else @AppStorage("detailViewType") var detailViewType: PostFileType = .original #endif @AppStorage("thumbnailType") var thumbnailType: PostFileType = .preview @AppStorage("searchSuggestions") var searchSuggestions: Bool = false @AppStorage("columns") var columns: Int = 2 @AppStorage("blurNSFWThumbnails") var blurNSFWThumbnails: Bool = true @AppStorage("showNSFWPosts") var showNSFWPosts: Bool = false func resetToDefaults() { #if DEBUG detailViewType = .compressed #else detailViewType = .original #endif thumbnailType = .preview searchSuggestions = false columns = 2 blurNSFWThumbnails = true showNSFWPosts = false } }