---
title: urlFragmentAllowed
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/characterset/urlfragmentallowed
---

# urlFragmentAllowed

Returns the character set for characters allowed in a fragment URL component.

## Declaration

```swift
static var urlFragmentAllowed: CharacterSet { get }
```

## See Also

### Getting Character Sets for URL Encoding

- [urlHostAllowed](foundation/characterset/urlhostallowed.md)
- [urlPasswordAllowed](foundation/characterset/urlpasswordallowed.md)
- [urlPathAllowed](foundation/characterset/urlpathallowed.md)
- [urlQueryAllowed](foundation/characterset/urlqueryallowed.md)
- [urlUserAllowed](foundation/characterset/urluserallowed.md)
