---
title: "cityWithContext(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkaddressrepresentations/citywithcontext(_:)"
---

# cityWithContext(_:)

The city name and, optionally and if applicable, state and region to provide additional disambiguating context.

## Declaration

```swift
func cityWithContext(_ style: MKAddressRepresentations.ContextStyle) -> String?
```

## Parameters

- `style`: The doc://com.apple.mapkit/documentation/MapKit/MKAddressRepresentations/ContextStyle to apply.

## See Also

### Getting a full address and city name

- [fullAddress(includingRegion:singleLine:)](mapkit/mkaddressrepresentations/fulladdress(includingregion:singleline:).md)
