<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeclaredAgeRange",
  "identifier" : "/documentation/DeclaredAgeRange/DeclaredAgeRangeAction",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Declared Age Range"
    ],
    "preciseIdentifier" : "s:16DeclaredAgeRange0abC6ActionV"
  },
  "title" : "DeclaredAgeRangeAction"
}
-->

# DeclaredAgeRangeAction

An action that requests a person’s age range.

```
struct DeclaredAgeRangeAction
```

## Overview

Use `DeclaredAgeRangeAction` in SwiftUI views to request age ranges without manually managing the presentation context. This action automatically handles the differences between macOS and iOS presentation contexts, providing a unified interface for age range requests across platforms.

## Topics

### Requesting the age range

[`callAsFunction(ageGates:_:_:)`](/documentation/DeclaredAgeRange/DeclaredAgeRangeAction/callAsFunction(ageGates:_:_:))

Returns a response indicating whether the person shared their age range.



---

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)