<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLVertexDescriptor/attributeNamed(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLVertexDescriptor(im)attributeNamed:"
  },
  "title" : "attributeNamed(_:)"
}
-->

# attributeNamed(_:)

Returns the vertex attribute with the specified name in the vertex descriptor.

```
func attributeNamed(_ name: String) -> MDLVertexAttribute?
```

## Parameters

`name`

The attribute name for which to retrieve data. See Vertex Attributes for standard attribute names.

## Return Value

The descriptor’s vertex attribute with the specified name, or `nil` if the [`attributes`](/documentation/ModelIO/MDLVertexDescriptor/attributes) array does not contain a vertex attribute with that name.

---

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)