<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedSettings",
  "identifier" : "/documentation/ManagedSettings/GameCenterSettings/denyAddingFriends-swift.type.property",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Managed Settings"
    ],
    "preciseIdentifier" : "s:15ManagedSettings010GameCenterB0V17denyAddingFriendsAA15SettingMetadataVySbGvpZ"
  },
  "title" : "denyAddingFriends"
}
-->

# denyAddingFriends

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

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

## Discussion

Use `denyAddingFriends` to access the metadata for [`denyAddingFriends`](/documentation/ManagedSettings/GameCenterSettings/denyAddingFriends-swift.property).
The default value is `false`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)