summaryrefslogtreecommitdiff
path: root/Sora/Data
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-19 00:24:03 -0800
committerFuwn <[email protected]>2025-02-19 00:24:03 -0800
commitaa8501d8f3025d2bf4cbbe08ea5226b0d6f52a38 (patch)
tree9d2008bb2a9b4f8d140fc359ad170ad7f0bf087a /Sora/Data
parentfeat: Development commit (diff)
downloadsora-testing-aa8501d8f3025d2bf4cbbe08ea5226b0d6f52a38.tar.xz
sora-testing-aa8501d8f3025d2bf4cbbe08ea5226b0d6f52a38.zip
feat: Development commit
Diffstat (limited to 'Sora/Data')
-rw-r--r--Sora/Data/Settings.swift7
1 files changed, 0 insertions, 7 deletions
diff --git a/Sora/Data/Settings.swift b/Sora/Data/Settings.swift
index 8ce6c1a..808f52d 100644
--- a/Sora/Data/Settings.swift
+++ b/Sora/Data/Settings.swift
@@ -1,7 +1,6 @@
import SwiftUI
class Settings: ObservableObject {
- @AppStorage("softLimit") var softLimit: Int = 100
#if DEBUG
@AppStorage("detailViewType") var detailViewType: PostFileType = .compressed
#else
@@ -10,10 +9,4 @@ class Settings: ObservableObject {
@AppStorage("thumbnailType") var thumbnailType: PostFileType = .preview
@AppStorage("searchSuggestions") var searchSuggestions: Bool = false
@AppStorage("columns") var columns: Int = 2
- let minSoftLimit: Int = 100
- let maxSoftLimit: Int = 10000
-
- func softLimitAsCGFloat() -> CGFloat {
- max(CGFloat(softLimit), CGFloat(minSoftLimit))
- }
}