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

# upperBound

The maximum age in the person’s declared age range.

```
var upperBound: Int?
```

## Discussion

When this value is `nil`, there’s no upper bound to the person’s age range, indicating they meet or exceed the highest age gate specified by the `requestAgeRange(ageGates:_:_:in:)` methods (for example, [`requestAgeRange(ageGates:_:_:in:)`](/documentation/DeclaredAgeRange/AgeRangeService/requestAgeRange(ageGates:_:_:in:)-2go8c)).

When present, the value of this property equals the highest age gate that exceeds the person’s declared age, out of the age gates you supply to the method.

Consider this property together with [`lowerBound`](/documentation/DeclaredAgeRange/AgeRangeService/AgeRange/lowerBound) to gate your app’s content based on the person’s declared 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)