<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GridItem/Size-swift.enum/flexible(minimum:maximum:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI8GridItemV4SizeO8flexibleyAE14CoreFoundation7CGFloatV_AItcAEmF"
  },
  "title" : "GridItem.Size.flexible(minimum:maximum:)"
}
-->

# GridItem.Size.flexible(minimum:maximum:)

A single flexible item.

```
case flexible(minimum: CGFloat = 10, maximum: CGFloat = .infinity)
```

## Discussion

The size of this item is the size of the grid with spacing and
inflexible items removed, divided by the number of flexible items,
clamped to the provided bounds.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)