diff options
| author | Fuwn <[email protected]> | 2025-06-14 05:08:40 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-14 05:08:40 -0700 |
| commit | be75c5845d38bbd006dc1f11014bca9bd9825bce (patch) | |
| tree | b6840a1116546fba1bf5afaf5f093e5c95400778 /Sora/Extensions/View+TrailingFrame.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-be75c5845d38bbd006dc1f11014bca9bd9825bce.tar.xz sora-testing-be75c5845d38bbd006dc1f11014bca9bd9825bce.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Extensions/View+TrailingFrame.swift')
| -rw-r--r-- | Sora/Extensions/View+TrailingFrame.swift | 12 |
1 files changed, 12 insertions, 0 deletions
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 + } +} |