---
title: DeclaredAgeRangeAction
framework: declaredagerange
role: symbol
role_heading: Structure
path: declaredagerange/declaredagerangeaction
---

# DeclaredAgeRangeAction

An action that requests a person’s age range.

## Declaration

```swift
struct DeclaredAgeRangeAction
```

## Overview

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:_:_:)](declaredagerange/declaredagerangeaction/callasfunction(agegates:_:_:).md)

## See Also

### Age range requests

- [AgeRangeService](declaredagerange/agerangeservice.md)
