ermalkaleci / CarbonKit

CarbonKit - iOS Components (Obj-C & Swift)
MIT License
682 stars 164 forks source link

iOS 13 Crash and just find issues.Please repair it as soon as possible. #240

Closed jcg9487 closed 4 years ago

jcg9487 commented 4 years ago

pageViewController setViewControllers need add to main queue.

__weak typeof(self) weakSelf = self; dispatch_async(dispatch_get_main_queue(), ^{ [weakSelf.pageViewController setViewControllers:@[ viewController ] direction:animateDirection animated:animate completion:animateCompletionBlock]; });

emelyanovkirill commented 4 years ago

Thanks, it helped me) I had a fatal error for iOS 13: ** Assertion failure in UITraitCollection _Nonnull _UIGetCurrentFallbackTraitCollection(void)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3899.13.13/_UIFallbackEnvironment.m:91 error: Execution was interrupted, reason: breakpoint 1.1. The process has been returned to the state before expression evaluation.