mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Reduces reliance on presentationMode to dismiss
Bindings are passed instead and this fixes issues with Add Web (etc) only appearing once.
This commit is contained in:
21
Multiplatform/Shared/SceneNavigationModel.swift
Normal file
21
Multiplatform/Shared/SceneNavigationModel.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// SceneNavigationModel.swift
|
||||
// NetNewsWire
|
||||
//
|
||||
// Created by Stuart Breckenridge on 13/8/20.
|
||||
// Copyright © 2020 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
class SceneNavigationModel: ObservableObject {
|
||||
@Published var sheetToShow: SidebarSheets = .none {
|
||||
didSet {
|
||||
sheetToShow != .none ? (showSheet = true) : (showSheet = false)
|
||||
}
|
||||
}
|
||||
@Published var showSheet = false
|
||||
@Published var showShareSheet = false
|
||||
@Published var showAccountSyncErrorAlert = false
|
||||
}
|
||||
Reference in New Issue
Block a user