Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

getogrand
Copy link

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 getogrand force-pushed the fix-main-thread-error branch 2 times, most recently from 41c88e2 to 5f4d4cf Compare July 15, 2019 04:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant