From a41d3a24cbee52933796e6ecbc08cdefef41a87c Mon Sep 17 00:00:00 2001 From: Rob Huebner Date: Mon, 31 Jul 2017 11:52:39 -0400 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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