diff --git a/README.md b/README.md index e529a04..569815c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # StyledText StyledText is a library that simplifies styling dynamic text in iOS applications. Instead of having to use attributed strings every time you need to update text, you can declaratively set a text style on your labels. When the text of the label is updated, the label uses the preset style. +

+ +

+ ## Before ``` swift @@ -74,6 +78,10 @@ let redStyle = style.with(color: .red) ## Dynamic Type Support +

+ +

+ StyledText supports scaling text content to the system font size, a feature Apple calls [Dynamic Type](https://useyourloaf.com/blog/supporting-dynamic-type/). To use this feature, set the `dynamicTypeBehavior` property of a `TextStyle` to one of these values: * `noScaling`: [default] keep the font size constant, even when the system font size changes