mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add refresh interval to settings again
This commit is contained in:
15
iOS/Model Extensions/RefreshInterval-Extensions.swift
Normal file
15
iOS/Model Extensions/RefreshInterval-Extensions.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// RefreshInterval-Extensions.swift
|
||||
// NetNewsWire-iOS
|
||||
//
|
||||
// Created by Maurice Parker on 9/7/19.
|
||||
// Copyright © 2019 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension RefreshInterval: Identifiable {
|
||||
var id: Int {
|
||||
return rawValue
|
||||
}
|
||||
}
|
||||
@@ -41,12 +41,12 @@ struct SettingsView : View {
|
||||
}
|
||||
}
|
||||
|
||||
// Section(header: Text("DATABASE")) {
|
||||
// Picker(selection: $viewModel.refreshInterval, label: Text("Refresh Interval")) {
|
||||
// ForEach(RefreshInterval.allCases.identified(by: \.self)) { interval in
|
||||
// Text(interval.description()).tag(interval)
|
||||
// }
|
||||
// }
|
||||
Section(header: Text("DATABASE")) {
|
||||
Picker(selection: $viewModel.refreshInterval, label: Text("Refresh Interval")) {
|
||||
ForEach(RefreshInterval.allCases) { interval in
|
||||
Text(interval.description()).tag(interval)
|
||||
}
|
||||
}
|
||||
// Button(action: {
|
||||
// self.subscriptionsImportAccounts = self.createSubscriptionsImportAccounts
|
||||
// }) {
|
||||
@@ -61,8 +61,8 @@ struct SettingsView : View {
|
||||
// }
|
||||
// .presentation(subscriptionsExportAccounts)
|
||||
// .presentation(subscriptionsExportDocumentPicker)
|
||||
// }
|
||||
// .foregroundColor(.primary)
|
||||
}
|
||||
.foregroundColor(.primary)
|
||||
|
||||
Section(header: Text("ABOUT"), footer: buildFooter) {
|
||||
Text("About NetNewsWire")
|
||||
|
||||
Reference in New Issue
Block a user