feat(ios): refine native ui controls
This commit is contained in:
@@ -9,19 +9,11 @@ struct SettingsRuntime: Equatable {
|
||||
let deviceModel: String
|
||||
}
|
||||
|
||||
struct ServerCapability: Equatable, Identifiable {
|
||||
let id: String
|
||||
let name: String
|
||||
let detail: String
|
||||
}
|
||||
|
||||
@MainActor
|
||||
final class SettingsViewModel: ObservableObject {
|
||||
@Published private(set) var runtime: SettingsRuntime?
|
||||
@Published private(set) var serverCapabilities: [ServerCapability] = []
|
||||
@Published private(set) var isLoading = false
|
||||
@Published var storageLabel = "--"
|
||||
@Published var serverCapabilitiesNotice = ""
|
||||
@Published var notice: String?
|
||||
@Published var errorMessage: String?
|
||||
|
||||
@@ -42,8 +34,6 @@ final class SettingsViewModel: ObservableObject {
|
||||
platform: "iOS",
|
||||
deviceModel: Self.deviceModel()
|
||||
)
|
||||
serverCapabilities = []
|
||||
serverCapabilitiesNotice = "定时任务与后台刷新已在 iOS 版停用。"
|
||||
await loadStorageLabel()
|
||||
|
||||
isLoading = false
|
||||
|
||||
Reference in New Issue
Block a user