---
title: persistence
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlcredential/persistence-swift.property
---

# persistence

The credential’s persistence setting.

## Declaration

```swift
var persistence: URLCredential.Persistence { get }
```

## See Also

### Getting credential properties

- [user](foundation/urlcredential/user.md)
- [certificates](foundation/urlcredential/certificates.md)
- [hasPassword](foundation/urlcredential/haspassword.md)
- [password](foundation/urlcredential/password.md)
- [identity](foundation/urlcredential/identity.md)
- [URLCredential.Persistence](foundation/urlcredential/persistence-swift.enum.md)
