Post

Replies

Boosts

Views

Activity

Reply to UIScrollView in UIViewControllerRepresentable - UI freezes when content touches bottom SafeArea
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?
Topic: UI Frameworks SubTopic: SwiftUI
Apr ’25
Reply to I have submitted a DTS ticket one week ago but did not receive any response
Another week without feedback to my DTS Ticket. Is there anything I can do, to get help?
Replies
Boosts
Views
Activity
Apr ’25
Reply to UIScrollView in UIViewControllerRepresentable - UI freezes when content touches bottom SafeArea
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?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Apr ’25
Reply to Xcode 16.0 + SwiftUI: Failed to launch app "MyApp.app" in reasonable time
I have submitted the feedback including the diagnostics report as advised: FB15429176
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24