You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the example project on iOS 11.3 with Xcode 9.3, the Main Thread Checker detects that the UI API is called on a background thread instead of the main thread in updateCameraAngleForCurrentDeviceMotion() and Xcode reports -[UIApplication statusBarOrientation] must be used from main thread only on https://github.com/NYTimes/ios-360-videos/blob/develop/Sources/NYT360CameraController.m#L109.
After surrounding the code block by dispatch_async(dispatch_get_main_queue(), ^{ ... }); the warning no longer appears.
When running the example project on iOS 11.3 with Xcode 9.3, the Main Thread Checker detects that the UI API is called on a background thread instead of the main thread in
updateCameraAngleForCurrentDeviceMotion()
and Xcode reports-[UIApplication statusBarOrientation] must be used from main thread only
on https://github.com/NYTimes/ios-360-videos/blob/develop/Sources/NYT360CameraController.m#L109.After surrounding the code block by
dispatch_async(dispatch_get_main_queue(), ^{ ... });
the warning no longer appears.The text was updated successfully, but these errors were encountered: