style: format macOS sources

This commit is contained in:
Peter Steinberger
2025-12-23 03:02:09 +01:00
parent 63f1857bda
commit 89ace66972
7 changed files with 31 additions and 21 deletions

View File

@@ -314,12 +314,11 @@ final class WebChatSwiftUIWindowController {
effectView.autoresizingMask = [.width, .height]
effectView.wantsLayer = true
effectView.layer?.cornerCurve = .continuous
let cornerRadius: CGFloat
switch presentation {
let cornerRadius: CGFloat = switch presentation {
case .panel:
cornerRadius = 16
16
case .window:
cornerRadius = 12
12
}
effectView.layer?.cornerRadius = cornerRadius
effectView.layer?.masksToBounds = true
@@ -336,7 +335,7 @@ final class WebChatSwiftUIWindowController {
hosting.view.leadingAnchor.constraint(equalTo: effectView.leadingAnchor),
hosting.view.trailingAnchor.constraint(equalTo: effectView.trailingAnchor),
hosting.view.topAnchor.constraint(equalTo: effectView.topAnchor),
hosting.view.bottomAnchor.constraint(equalTo: effectView.bottomAnchor)
hosting.view.bottomAnchor.constraint(equalTo: effectView.bottomAnchor),
])
return controller