<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSItem/Attributes/isValid(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSItemAttributes(im)isValid:"
  },
  "title" : "isValid(_:)"
}
-->

# isValid(_:)

Returns a Boolean value that indicates whether the attribute is valid.

```
func isValid(_ attribute: FSItem.Attribute) -> Bool
```

## Discussion

If the value returned by this method is `YES` (Objective-C) or `true` (Swift), a caller can safely use the given attribute.

---

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)