---
title: state
framework: datadetection
role: symbol
role_heading: Instance Property
path: datadetection/datadetector/match/semanticdetails/postaladdress/state
---

# state

An optional string that may contain the state component of the address.

## Declaration

```swift
let state: String?
```

## See Also

### Properties that detail parts of a postal address

- [fullAddress](datadetection/datadetector/match/semanticdetails/postaladdress/fulladdress.md)
- [street](datadetection/datadetector/match/semanticdetails/postaladdress/street.md)
- [city](datadetection/datadetector/match/semanticdetails/postaladdress/city.md)
- [postalCode](datadetection/datadetector/match/semanticdetails/postaladdress/postalcode.md)
- [region](datadetection/datadetector/match/semanticdetails/postaladdress/region.md)
- [regionCode](datadetection/datadetector/match/semanticdetails/postaladdress/regioncode.md)
- [label](datadetection/datadetector/match/semanticdetails/postaladdress/label.md)
