|
|
@@ -2,6 +2,25 @@ import AppKit
|
|
|
import SwiftUI
|
|
|
import UniformTypeIdentifiers
|
|
|
|
|
|
+// MARK: - Page Boundary
|
|
|
+
|
|
|
+struct PostPageBoundary<Content: View>: View {
|
|
|
+ @ViewBuilder let content: Content
|
|
|
+
|
|
|
+ var body: some View {
|
|
|
+ content
|
|
|
+ .padding(20)
|
|
|
+ .background(
|
|
|
+ RoundedRectangle(cornerRadius: AppTheme.cornerRadius)
|
|
|
+ .fill(AppTheme.panelBackground)
|
|
|
+ )
|
|
|
+ .overlay(
|
|
|
+ RoundedRectangle(cornerRadius: AppTheme.cornerRadius)
|
|
|
+ .stroke(AppTheme.cardBorder, lineWidth: 1)
|
|
|
+ )
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// MARK: - Shared Form Components
|
|
|
|
|
|
struct PostFormCard<Content: View>: View {
|