---
title: endAccessingResources()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsbundleresourcerequest/endaccessingresources()
---

# endAccessingResources()

Informs the system that you have finished accessing the resources marked with the tags managed by the request.

## Declaration

```swift
func endAccessingResources()
```

## Discussion

Discussion Call this method as soon as you have finished using the tags managed by this request. If needed, this method will be called by the system when the resource request object is deallocated. important: The callback from beginAccessingResources(completionHandler:) or conditionallyBeginAccessingResources(completionHandler:) must have completed before calling endAccessingResources().

## See Also

### Requesting resources

- [beginAccessingResources(completionHandler:)](foundation/nsbundleresourcerequest/beginaccessingresources(completionhandler:).md)
- [conditionallyBeginAccessingResources(completionHandler:)](foundation/nsbundleresourcerequest/conditionallybeginaccessingresources(completionhandler:).md)
