2020-07-04 15:34:15 +02:00
|
|
|
//
|
|
|
|
// SidebarToolbarModel.swift
|
|
|
|
// NetNewsWire
|
|
|
|
//
|
|
|
|
// Created by Stuart Breckenridge on 4/7/20.
|
|
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2020-07-25 10:40:04 +02:00
|
|
|
enum SidebarSheets {
|
|
|
|
case none, web, twitter, reddit, folder, settings, fixCredentials
|
2020-07-04 15:34:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class SidebarToolbarModel: ObservableObject {
|
|
|
|
|
|
|
|
@Published var showSheet: Bool = false
|
2020-07-25 10:40:04 +02:00
|
|
|
@Published var sheetToShow: SidebarSheets = .none {
|
2020-07-04 15:34:15 +02:00
|
|
|
didSet {
|
|
|
|
sheetToShow != .none ? (showSheet = true) : (showSheet = false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@Published var showAddSheet: Bool = false
|
|
|
|
|
|
|
|
}
|