I am currently implementing a layout for a collection view using a compositional layout. However, I have encountered a bug as follows:
As you can see in the images, on iOS 15, even though I set the orthogonalScrollingBehavior to groupPagingCentered, it does not initially align to the center when the app loads. The same issue persists during scrolling. However, from iOS 16 onwards, it aligns correctly to the center. Is this a known bug? I have been unable to find similar cases despite extensive searching, hence this post.
Below is a link to a sample project demonstrating the issue:
https://github.com/leeari95/CompositionalLayout-BugDemo
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I've encountered a memory leak issue when setting the prefersGrabberVisible to true as shown below. There seems to be a bug where the view controller is not properly released from memory upon dismissal.
if let sheet = presentedViewController.sheetPresentationController {
sheet.detents = g_detents(defaultHeight: defaultHeight)
sheet.prefersScrollingExpandsWhenScrolledToEdge = false
sheet.prefersEdgeAttachedInCompactHeight = true
sheet.widthFollowsPreferredContentSizeWhenEdgeAttached = true
sheet.prefersGrabberVisible = true // Commenting out this line prevents the memory leak
sheet.selectedDetentIdentifier = .medium
}
present(presentedViewController, animated: true, completion: nil)
Has anyone else experienced this issue, or does anyone have a workaround for this memory leak problem? Any insights or suggestions would be greatly appreciated.
I encountered a runtime error in a project I'm working on, where I tapped a specific sentence to move the cursor position and then tried to insert a newline. When I pressed backspace to cancel the newline, the app crashed due to a runtime error.
Believing that the issue might not be with our project, I attempted the same actions in Apple's default Notes app and encountered a crash there as well.
This appears to be a UIKit bug... Can it be resolved?
I will attach the video I tested this with and the text used for testing below.
Test Text:
https://shorturl.at/uISV7
Test Video:
https://github.com/leeari95/leeari95/assets/75905803/1665fd8e-73ea-4be0-9c02-abc682f8552b