---
title: "attributeNamed(_:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdlvertexdescriptor/attributenamed(_:)"
---

# attributeNamed(_:)

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

## Declaration

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

## Parameters

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

## Return Value

Return Value The descriptor’s vertex attribute with the specified name, or nil if the attributes array does not contain a vertex attribute with that name.

## See Also

### Working with Vertex Attributes

- [attributes](modelio/mdlvertexdescriptor/attributes.md)
- [addOrReplaceAttribute(_:)](modelio/mdlvertexdescriptor/addorreplaceattribute(_:).md)
- [setPackedOffsets()](modelio/mdlvertexdescriptor/setpackedoffsets().md)
