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

# city

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

## Declaration

```swift
let city: 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)
- [state](datadetection/datadetector/match/semanticdetails/postaladdress/state.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)
