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

# denyAddingFriends

A Boolean value that indicates whether to prevent the user from adding Game Center friends.

## Declaration

```swift
var denyAddingFriends: Bool? { get set }
```

## Discussion

Discussion If your app doesn’t configure this setting, this value is nil.

## See Also

### Denying the ability to add friends

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