<!--
{
  "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/MDLMaterial/property(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLMaterial(im)propertyWithSemantic:"
  },
  "title" : "property(with:)"
}
-->

# property(with:)

Returns the material property for the specified material semantic.

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

## Parameters

`semantic`

The semantic value of a material property in the material.

## Return Value

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

## Discussion

Material semantics identify the intended use of a material property in shading. Some semantic values, such as [`MDLMaterialSemantic.specular`](/documentation/ModelIO/MDLMaterialSemantic/specular), are part of the material’s [`scatteringFunction`](/documentation/ModelIO/MDLMaterial/scatteringFunction) property that determines its response to lighting; others, such as [`MDLMaterialSemantic.opacity`](/documentation/ModelIO/MDLMaterialSemantic/opacity), determine other aspects of material rendering.

---

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)