From be75c5845d38bbd006dc1f11014bca9bd9825bce Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 14 Jun 2025 05:08:40 -0700 Subject: feat: Development commit --- Sora/Extensions/View+TrailingFrame.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Sora/Extensions/View+TrailingFrame.swift (limited to 'Sora/Extensions/View+TrailingFrame.swift') diff --git a/Sora/Extensions/View+TrailingFrame.swift b/Sora/Extensions/View+TrailingFrame.swift new file mode 100644 index 0000000..1edfcde --- /dev/null +++ b/Sora/Extensions/View+TrailingFrame.swift @@ -0,0 +1,12 @@ +import SwiftUI + +extension View { + @ViewBuilder + func trailingFrame() -> some View { + #if os(macOS) + self.frame(maxWidth: .infinity, alignment: .trailing) + #else + self + #endif + } +} -- cgit v1.2.3