---
title: denyAddingFriends
framework: managedsettings
role: symbol
role_heading: Type Property
path: managedsettings/gamecentersettings/denyaddingfriends-swift.type.property
---

# denyAddingFriends

The metadata for the setting that prevents the user from adding friends in Game Center.

## Declaration

```swift
static let denyAddingFriends: SettingMetadata<Bool>
```

## Discussion

Discussion Use denyAddingFriends to access the metadata for denyAddingFriends. The default value is false.

## See Also

### Denying the ability to add friends

- [denyAddingFriends](managedsettings/gamecentersettings/denyaddingfriends-swift.property.md)
