summaryrefslogtreecommitdiff
path: root/Sora/Extensions/View+TrailingFrame.swift
blob: 1edfcde68d458ef34a0a8ba94b6a088d3fbd5eeb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import SwiftUI

extension View {
  @ViewBuilder
  func trailingFrame() -> some View {
    #if os(macOS)
      self.frame(maxWidth: .infinity, alignment: .trailing)
    #else
      self
    #endif
  }
}