diff --git a/Sources/winui-swift/Window/Window.swift b/Sources/winui-swift/Window/Window.swift index 5acdd6c..feaf993 100644 --- a/Sources/winui-swift/Window/Window.swift +++ b/Sources/winui-swift/Window/Window.swift @@ -43,15 +43,17 @@ public struct Window: WinUISceneElement { /// - Returns: The view. func fullContent(window: WinUIWindow) -> Grid { .init { - Grid(columns: [.init()]) { - Text(title) - .style(.caption) - .verticalAlignment(.center) + if extendContent ?? false { + Grid(columns: [.init()]) { + Text(title) + .style(.caption) + .verticalAlignment(.center) + } + .titleBar() + .margin(48, .left) + .height(48) + .verticalAlignment(.top) } - .titleBar() - .margin(48, .left) - .height(48) - .verticalAlignment(.top) content(window) } }