diff options
| author | Fuwn <[email protected]> | 2025-02-20 06:04:18 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-20 06:04:18 -0800 |
| commit | 82d7c141c000a05aa569880ccd44781e43be9654 (patch) | |
| tree | 34886928eccc3ba8dac76e9e54e169eb080eba43 /Sora/Data/Settings.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-82d7c141c000a05aa569880ccd44781e43be9654.tar.xz sora-testing-82d7c141c000a05aa569880ccd44781e43be9654.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Data/Settings.swift')
| -rw-r--r-- | Sora/Data/Settings.swift | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Sora/Data/Settings.swift b/Sora/Data/Settings.swift deleted file mode 100644 index 1d3ccba..0000000 --- a/Sora/Data/Settings.swift +++ /dev/null @@ -1,27 +0,0 @@ -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 - } -} |