mirror of
https://github.com/wallabag/ios-app.git
synced 2026-05-19 15:10:34 +00:00
b59b9e0408
* Bump version * Clean code (#393) * Mac os version (#395) * wip mac os version * Build on macos * WIP Webview * Update app icon Refacto routing * Move folder * Image list * Change badge update * Arrange entry view menu * Add refresh command * Add app Sandbox for macos + first build on macos * Fix #397 * Fix macos build * Try fix app icon * Rework toolbar entry * Fix logo * Add test on serverViewModel * Update refresh button * Clean file + clean Picker * Fix progress view * Fix delete entry on ipad fix #389 * Swiftformat * Add swipe to back fix #356 * enhance bottom button tap fix #400 * Add dismiss action in entry view fix #338 * Add sorting options only on id fix #71 * Add progress
40 lines
1.3 KiB
Swift
40 lines
1.3 KiB
Swift
import SharedLib
|
|
import SwiftUI
|
|
|
|
struct SettingView: View {
|
|
@AppStorage("showImageInList") var showImageInList: Bool = true
|
|
@AppStorage("justifyArticle") var justifyArticle: Bool = true
|
|
@AppStorage("badge") var badge: Bool = true
|
|
@AppStorage("defaultMode") var defaultMode: String = RetrieveMode.allArticles.rawValue
|
|
@AppStorage("itemPerPageDuringSync") var itemPerPageDuringSync: Int = 50
|
|
|
|
var body: some View {
|
|
Form {
|
|
Section("Entries list") {
|
|
Toggle("Show image in list", isOn: $showImageInList)
|
|
Picker("Default mode", selection: $defaultMode) {
|
|
ForEach(RetrieveMode.allCases, id: \.rawValue) {
|
|
Text($0.rawValue).tag($0.settingCase)
|
|
}
|
|
}
|
|
}
|
|
Section("Badge") {
|
|
Toggle("Show badge", isOn: $badge)
|
|
}
|
|
Section("Entry") {
|
|
Toggle("Justify entry", isOn: $justifyArticle)
|
|
}
|
|
Section("Sync") {
|
|
Stepper("Item per page during sync \(itemPerPageDuringSync)", value: $itemPerPageDuringSync, in: 20 ... 200)
|
|
}
|
|
}
|
|
.navigationTitle("Setting")
|
|
}
|
|
}
|
|
|
|
struct SettingView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
SettingView()
|
|
}
|
|
}
|