---
title: "init(tags:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsbundleresourcerequest/init(tags:)"
---

# init(tags:)

Initializes a resource request for managing the on-demand resources marked with any of the set of specified tags. The managed resources are loaded into the main bundle.

## Declaration

```swift
convenience init(tags: Set<String>)
```

## Parameters

- `tags`: A set of strings, with each string specifying a tag assigned to resources stored in the main bundle. The value must not be nil.

## Return Value

Return Value The initialized resource request.

## See Also

### Related Documentation

- [Bundle](foundation/bundle.md)
- [On-Demand Resources Guide](apple-archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide.md)

### Initializing a resource request

- [init(tags:bundle:)](foundation/nsbundleresourcerequest/init(tags:bundle:).md)
