<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EnvironmentValues/requestAgeRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17EnvironmentValuesV16DeclaredAgeRangeE07requestfG0AD0efG6ActionVvp"
  },
  "title" : "requestAgeRange"
}
-->

# requestAgeRange

An action that presents a system interface to request a person’s age range.

```
var requestAgeRange: DeclaredAgeRangeAction { get }
```

## Discussion

Call this action from a <doc://com.apple.documentation/documentation/SwiftUI/Button> or
<doc://com.apple.documentation/documentation/SwiftUI/View/onAppear(perform:)> to ask
people to share their age range with your app.

---

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)