---
title: "textStyleRules(fromPropertyList:)"
framework: avfoundation
role: symbol
role_heading: Type Method
path: "avfoundation/avtextstylerule/textstylerules(frompropertylist:)"
---

# textStyleRules(fromPropertyList:)

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

## Declaration

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

## Parameters

- `plist`: A property-list object containing the text style data.

## Return Value

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

## Discussion

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:) class method.

## See Also

### Creating and initializing style rules

- [init(textMarkupAttributes:)](avfoundation/avtextstylerule/init(textmarkupattributes:).md)
- [init(textMarkupAttributes:textSelector:)](avfoundation/avtextstylerule/init(textmarkupattributes:textselector:).md)
