LayoutPriorityModifier.swift 234 B

123456
  1. extension View {
  2. /// Sets the priority with which a parent layout should allocate space to this child.
  3. public func layoutPriority(_ value: Double) -> some View {
  4. preference(key: \.layoutPriority, value: value)
  5. }
  6. }