We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b343924 commit 78d52ecCopy full SHA for 78d52ec
1 file changed
Aztec/Classes/TextKit/Configuration.swift
@@ -4,11 +4,13 @@ public final class Configuration {
4
5
public static var headersWithBoldTrait = false
6
7
- static var defaultBoldFormatter: AttributeFormatter = {
8
- if headersWithBoldTrait {
9
- return BoldWithShadowForHeadingFormatter()
10
- } else {
11
- return BoldFormatter()
+ static var defaultBoldFormatter: AttributeFormatter {
+ get {
+ if headersWithBoldTrait {
+ return BoldWithShadowForHeadingFormatter()
+ } else {
12
+ return BoldFormatter()
13
+ }
14
}
- } ()
15
16
0 commit comments