<!--
{
  "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/adaptive(minimum:maximum:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI8GridItemV4SizeO8adaptiveyAE14CoreFoundation7CGFloatV_AItcAEmF"
  },
  "title" : "GridItem.Size.adaptive(minimum:maximum:)"
}
-->

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

Multiple items in the space of a single flexible item.

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

## Discussion

This size case places one or more items into the space assigned to
a single `flexible` item, using the provided bounds and
spacing to decide exactly how many items fit. This approach prefers
to insert as many items of the `minimum` size as possible
but lets them increase to the `maximum` size.

---

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)