<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "iTunesLibrary",
  "identifier" : "/documentation/iTunesLibrary/ITLibMediaEntity/value(forProperty:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "iTunes Library"
    ],
    "preciseIdentifier" : "c:objc(cs)ITLibMediaEntity(im)valueForProperty:"
  },
  "title" : "value(forProperty:)"
}
-->

# value(forProperty:)

Gets the value for a specified media property key.

```
func value(forProperty property: String) -> Any?
```

## Parameters

`property`

The media property to retrieve the value from. Takes Media Item Properties and Playlist Properties from [`ITLibMediaItem`](/documentation/iTunesLibrary/ITLibMediaItem).

## Return Value

The value of the specified media property key.

## Discussion

---

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)