Sapling/Sources/SaplingUI/EmptyEditorPlaceholder.swift

14 lines
402 B
Swift

import SwiftUI
public struct EmptyEditorPlaceholder: View {
public init() {}
public var body: some View {
ContentUnavailableView(
"Select a Markdown file",
systemImage: "doc.text.magnifyingglass",
description: Text("Open a file from the workspace tree to begin editing.")
)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}