summaryrefslogtreecommitdiff
path: root/Sora/Extensions
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-15 20:49:53 -0700
committerFuwn <[email protected]>2025-03-15 20:49:53 -0700
commitc2df5dd7ad1fc665717f352d2094d17f0ca26c1b (patch)
treebfea18c3ac03308570b6e7b4a257348c0d84448e /Sora/Extensions
parentfeat: Development commit (diff)
downloadsora-testing-c2df5dd7ad1fc665717f352d2094d17f0ca26c1b.tar.xz
sora-testing-c2df5dd7ad1fc665717f352d2094d17f0ca26c1b.zip
feat: Development commit
Diffstat (limited to 'Sora/Extensions')
-rw-r--r--Sora/Extensions/View.swift12
1 files changed, 12 insertions, 0 deletions
diff --git a/Sora/Extensions/View.swift b/Sora/Extensions/View.swift
new file mode 100644
index 0000000..1edfcde
--- /dev/null
+++ b/Sora/Extensions/View.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
+ }
+}