---
title: rank
framework: authenticationservices
role: symbol
role_heading: Instance Property
path: authenticationservices/ascredentialidentity/rank
---

# rank

An indicator that enables you to prioritize credential identities relative to each other.

## Declaration

```swift
var rank: Int { get set }
```

## Discussion

Discussion The system may use the rank to select between credential identities if multiple identities have the same service identifier. A credential identity with a high rank gets precedence over a lower-ranked identity with the same service identifier. The default value is 0.
