Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITableViewAlertForLayoutOutsideViewHierarchy #80

Open
2B-Divergent opened this issue Dec 11, 2020 · 0 comments
Open

UITableViewAlertForLayoutOutsideViewHierarchy #80

2B-Divergent opened this issue Dec 11, 2020 · 0 comments

Comments

@2B-Divergent
Copy link

I got this message. It is possible that the app will crash. With this solution * DispatchQueue.main.async {}
(in line 489 of the PullUpController.swift), the message will disappear.

Kind Regards,
Ton Driessen

DispatchQueue.main.async {
if animated {
pullUpController.pullUpControllerAnimate(
action: .add,
withDuration: 0.3,
animations: { [weak self] in
self?.view.layoutIfNeeded()
},
completion: { didComplete in
pullUpController.didMove(toParent: self)
completion?(didComplete)
}
)
} else {
self.view.layoutIfNeeded()
pullUpController.didMove(toParent: self)
completion?(true)
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant