stephan-tolksdorf / STULabel

A faster and more flexible label view for iOS
Other
121 stars 28 forks source link

Fix deadlock running tests on Xcode 16.0 beta #57

Open nolanw opened 3 months ago

nolanw commented 3 months ago

Accessing UIScreen.mainScreen in a category +load is too soon as of Xcode 16.0 and results in a deadlock when attempting to run a test bundle. Instead we lazily load the desired info (and start observing changes) upon first access.

Fixes #56.

stephan-tolksdorf commented 2 months ago

I've prepared an alternate fix. @macdrevx and @nolanw, could you take a look please whether that works for your purposes?