mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Inspector View
Inspector Views for macOS and iOS
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user