---
title: "preservationPriority(forTag:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/bundle/preservationpriority(fortag:)"
---

# preservationPriority(forTag:)

Returns the current preservation priority for the specified tag.

## Declaration

```swift
func preservationPriority(forTag tag: String) -> Double
```

## Parameters

- `tag`: A string specifying the identifier for a group of related resources. An exception is thrown if tag does not exist in your app.

## Return Value

Return Value The preservation priority for the specified tag. Possible values are between 0.0 and 1.0

## See Also

### Managing preservation priority for on-demand resources

- [setPreservationPriority(_:forTags:)](foundation/bundle/setpreservationpriority(_:fortags:).md)
