---
title: "property(with:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdlmaterial/property(with:)"
---

# property(with:)

Returns the material property for the specified material semantic.

## Declaration

```swift
func property(with semantic: MDLMaterialSemantic) -> MDLMaterialProperty?
```

## Parameters

- `semantic`: The semantic value of a material property in the material.

## Return Value

Return Value The material property for the specified semantic, or nil if the material does not contain a material property for that semantic.

## Discussion

Discussion Material semantics identify the intended use of a material property in shading. Some semantic values, such as MDLMaterialSemantic.specular, are part of the material’s scatteringFunction property that determines its response to lighting; others, such as MDLMaterialSemantic.opacity, determine other aspects of material rendering.

## See Also

### Working with individual material properties

- [propertyNamed(_:)](modelio/mdlmaterial/propertynamed(_:).md)
- [properties(with:)](modelio/mdlmaterial/properties(with:).md)
- [setProperty(_:)](modelio/mdlmaterial/setproperty(_:).md)
- [remove(_:)](modelio/mdlmaterial/remove(_:).md)
- [removeAllProperties()](modelio/mdlmaterial/removeallproperties().md)
