mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 01:17:29 +01:00
01a84a2a40
Also moved view model to separate file and removed the view prefix.
27 lines
577 B
Swift
27 lines
577 B
Swift
//
|
|
// SidebarToolbarModel.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Stuart Breckenridge on 4/7/20.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum ToolbarSheets {
|
|
case none, web, twitter, reddit, folder, settings
|
|
}
|
|
|
|
class SidebarToolbarModel: ObservableObject {
|
|
|
|
@Published var showSheet: Bool = false
|
|
@Published var sheetToShow: ToolbarSheets = .none {
|
|
didSet {
|
|
sheetToShow != .none ? (showSheet = true) : (showSheet = false)
|
|
}
|
|
}
|
|
@Published var showActionSheet: Bool = false
|
|
@Published var showAddSheet: Bool = false
|
|
|
|
}
|