---
title: "hasCommonParent(with:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/locale/language-swift.struct/hascommonparent(with:)"
---

# hasCommonParent(with:)

Returns a Boolean value that indicates if the given language shares a common parent with this language.

## Declaration

```swift
func hasCommonParent(with language: Locale.Language) -> Bool
```

## Parameters

- `language`: A language to compare parentage with.

## Return Value

Return Value true if this language and language share a common parent; false otherwise.

## See Also

### Examining language relationships

- [parent](foundation/locale/language-swift.struct/parent.md)
- [isEquivalent(to:)](foundation/locale/language-swift.struct/isequivalent(to:).md)
