mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-15 18:59:18 +01:00
673f0ce718
If a single sync failure is encountered a sheet is presented which allows the user to update their credentials. If multiple sync failures are encountered an alert is shown listing the accounts which encountered errors. On iOS, this alert can take the user into Settings, but there is no obvious way to programatically pesent macOS preferences.
27 lines
593 B
Swift
27 lines
593 B
Swift
//
|
|
// SidebarToolbarModel.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Stuart Breckenridge on 4/7/20.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum SidebarSheets {
|
|
case none, web, twitter, reddit, folder, settings, fixCredentials
|
|
}
|
|
|
|
class SidebarToolbarModel: ObservableObject {
|
|
|
|
@Published var showSheet: Bool = false
|
|
@Published var sheetToShow: SidebarSheets = .none {
|
|
didSet {
|
|
sheetToShow != .none ? (showSheet = true) : (showSheet = false)
|
|
}
|
|
}
|
|
@Published var showActionSheet: Bool = false
|
|
@Published var showAddSheet: Bool = false
|
|
|
|
}
|