<!--
{
  "availability" : [
    "iOS: 17.6.0 -",
    "iPadOS: 17.6.0 -",
    "macCatalyst: 17.6.0 -",
    "macOS: 14.6.0 -",
    "tvOS: 17.6.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRServerAttribute/newFeatureMapAttribute(withInitialValue:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(cs)MTRServerAttribute(cm)newFeatureMapAttributeWithInitialValue:"
  },
  "title" : "newFeatureMapAttribute(withInitialValue:)"
}
-->

# newFeatureMapAttribute(withInitialValue:)

Create an attribute description for a FeatureMap attribute with the provided
value (expected to be an unsigned integer representing the value of the
bitmap). This will automatically set requiredPrivilege to the right value
for FeatureMap.

```
class func newFeatureMapAttribute(withInitialValue value: NSNumber) -> Self
```

---

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)