---
title: URL.ParseStrategy.ComponentParseStrategy.required
framework: foundation
role: symbol
role_heading: Case
path: foundation/url/parsestrategy/componentparsestrategy/required
---

# URL.ParseStrategy.ComponentParseStrategy.required

A strategy that requires the presence of the associated component for parsing to succeed.

## Declaration

```swift
case required
```

## See Also

### Component parse strategies

- [URL.ParseStrategy.ComponentParseStrategy.optional](foundation/url/parsestrategy/componentparsestrategy/optional.md)
- [URL.ParseStrategy.ComponentParseStrategy.defaultValue(_:)](foundation/url/parsestrategy/componentparsestrategy/defaultvalue(_:).md)
