Inspector View

Inspector Views for macOS and iOS
This commit is contained in:
Stuart Breckenridge
2020-07-18 17:34:04 +08:00
parent 538d886bf4
commit 8f8afb5dbb
6 changed files with 268 additions and 14 deletions

View File

@@ -10,12 +10,15 @@ import SwiftUI
struct SidebarContextMenu: View {
@Binding var showInspector: Bool
var sidebarItem: SidebarItem
@ViewBuilder var body: some View {
if sidebarItem.representedType == .account {
Button {
showInspector = true
} label: {
Text("Get Info")
#if os(iOS)
@@ -43,6 +46,7 @@ struct SidebarContextMenu: View {
if sidebarItem.representedType == .webFeed {
Button {
showInspector = true
} label: {
Text("Get Info")
#if os(iOS)
@@ -106,6 +110,7 @@ struct SidebarContextMenu: View {
}
Divider()
Button {
showInspector = true
} label: {
Text("Rename")
#if os(iOS)