Meanwhile I have received a response to my DTS ticket. However, the proposed solution does not really fix the problem:
Since this is a sheet, you’ll want to constrain the anchors to the ViewControllers safeAreaLayoutGuide instead since the sheet doesn’t have a status bar.
For example:
NSLayoutConstraint.activate([
scrollView.topAnchor
.constraint(equalTo: scrollViewVC.view.safeAreaLayoutGuide.topAnchor),
scrollView.bottomAnchor.constraint(equalTo: scrollViewVC.view.safeAreaLayoutGuide.bottomAnchor),
scrollView.leadingAnchor.constraint(equalTo: scrollViewVC.view.safeAreaLayoutGuide.leadingAnchor),
scrollView.trailingAnchor.constraint(equalTo: scrollViewVC.view.safeAreaLayoutGuide.trailingAnchor)
])
When using this code, the UI does not freeze anymore. However, this is just because now the scroll view does not reach below the SafeArea any more. This is obviously not a solution to the problem: How to avoid the UI from freezing when the scroll content reaches below the SafeArea?