In class LabelLayoutDefaults, UILabel.init() is called on static stored property declaration.
This leads [UIView init] must be used from main thread only warning on Xcode.
Moreover, it breaks on runtime some cases (e.g. XCUITest tests layout built with using LabelLayout)
In class
LabelLayoutDefaults
,UILabel.init()
is called on static stored property declaration. This leads[UIView init] must be used from main thread only
warning on Xcode. Moreover, it breaks on runtime some cases (e.g. XCUITest tests layout built with using LabelLayout)This PR fixes this problem.