LayoutKit icon indicating copy to clipboard operation
LayoutKit copied to clipboard

Remove UIView.init() is called in outside of the main thread

Open getogrand opened this issue 6 years ago • 0 comments

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.

image

getogrand avatar Jul 15 '19 02:07 getogrand