Open nolanw opened 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.
UIScreen.mainScreen
+load
Fixes #56.
I've prepared an alternate fix. @macdrevx and @nolanw, could you take a look please whether that works for your purposes?
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.