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
@getogrand getogrand force-pushed the fix-main-thread-error branch from 5f4d4cf to 7c2a7ff Compare July 15, 2019 04:57
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.

1 participant