---
title: location
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextattachmentviewprovider/location
---

# location

The location that indicates the start of the text attachment.

## Declaration

```swift
var location: any NSTextLocation { get }
```

## Discussion

Discussion Specify the value of this property at initialization time using the init(textAttachment:parentView:textLayoutManager:location:) initializer.

## See Also

### Defining the contents

- [textAttachment](uikit/nstextattachmentviewprovider/textattachment.md)
- [textLayoutManager](uikit/nstextattachmentviewprovider/textlayoutmanager.md)
- [tracksTextAttachmentViewBounds](uikit/nstextattachmentviewprovider/trackstextattachmentviewbounds.md)
- [view](uikit/nstextattachmentviewprovider/view.md)
