Skip to content

UITableViewAlertForLayoutOutsideViewHierarchy #80

@2B-Divergent

Description

@2B-Divergent

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)
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions