// // PaddingView.swift // MacBackend // // Created by david-swift on 11.10.2024. // import SwiftUI /// The padding view. public struct PaddingView: SwiftUIWidget { /// The padding. var padding: Double /// The edges. var edges: Set /// The wrapped view. var child: Meta.AnyView /// The wrapped views. public var wrappedViews: [String: Meta.AnyView] { [.mainContent: child] } /// Initialize the padding view. /// - Parameters: /// - padding: The padding. /// - edges: The edges. /// - child: The wrapped view. public init(padding: Double, edges: Set, child: Meta.AnyView) { self.padding = padding self.edges = edges self.child = child } /// Get the SwiftUI view. /// - Parameter properties: The widget data. /// - Returns: The SwiftUI view. public static func view(properties: Self) -> some SwiftUI.View { MacBackendView(.mainContent) .padding(properties.edges.swiftUI, properties.padding) } }