<!--
{
  "availability" : [
    "tvOS: 9.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVViewElementStyle/value(propertyName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TVViewElementStyle(im)valueForStyleProperty:"
  },
  "title" : "value(propertyName:)"
}
-->

# value(propertyName:)

Returns the value associated with a given style name.

```
func value(propertyName name: String) -> Any?
```

## Parameters

`name`

A user defined string representing the name of the style.

## Return Value

An object containing the value associated with the style name.

## 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)