<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVTextStyleRule/textStyleRules(fromPropertyList:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVTextStyleRule(cm)textStyleRulesFromPropertyList:"
  },
  "title" : "textStyleRules(fromPropertyList:)"
}
-->

# textStyleRules(fromPropertyList:)

Creates an array of text style rule objects from the specified property-list object.

```
class func textStyleRules(fromPropertyList plist: Any) -> [AVTextStyleRule]?
```

## Parameters

`plist`

A property-list object containing the text style data.

## Return Value

An array of `AVTextStyleRule` objects corresponding to the style information in the property-list object.

## Discussion

Use this method to create new text style rule objects based on data you previously converted to a property-list format using the [`propertyList(for:)`](/documentation/AVFoundation/AVTextStyleRule/propertyList(for:)) class method.

---

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)