Commit 30a0c1e9 authored by Aral Balkan's avatar Aral Balkan

Style link text and add paragraph spacing.

parent 0ee7a620
......@@ -35,7 +35,7 @@ class ViewController: UIViewController {
.font(.systemFont(ofSize: headlineFontSize, weight: .bold)),
.color(.black),
// .lineHeightMultiple(0.7),
.paragraphSpacingAfter(1.0)
.paragraphSpacingAfter(8.0)
// .adapt(.control)
)
......@@ -48,6 +48,7 @@ class ViewController: UIViewController {
let linkStyle = StringStyle(
.font(.systemFont(ofSize: linkFontSize)),
.paragraphSpacingBefore(8.0),
// .lineHeightMultiple(1.25),
.color(.gray)
// .adapt(.body)
......@@ -80,6 +81,9 @@ class ViewController: UIViewController {
statusTextView.attributedText = statusAttributedString
// The link’s text attributes have to be overwritten manually.
self.statusTextView.linkTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkGray, NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue, NSAttributedString.Key.underlineColor: UIColor.darkGray]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment