Post

Replies

Boosts

Views

Activity

Reply to UICollectionViewController + UITextField autoscroll behavior
• I don't recall seeing this issue in the two months of previous testing on iOS 14 using Xcode 12. • I'm using UICollectionViewCompositionalLayout with estimated heights that are about the same size as the rendered rows. I also have header and footer boundary elements. • I thought it could be a layout pass as well, but when scrolling to the fields on my own, I don't see any jitter. It's only when the keyboard is visible and the system attempts to scroll the view. • All the cells are the same size. • I have prepared a minimum example and the issue is reproducible. dropbox.com/s/fpqy2tx7gpvdd69/CollectionViewTesting.zip?dl=0 I have submitted a bug report to Apple with this example project. ID is FB9640529.
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’21
Reply to UICollectionViewController + UITextField autoscroll behavior
• This is on both an iPhone 12 and the simulator. • This is the same code on both operating systems. • I was previously using Xcode 12, but upgraded to the the Xcode 13 RC. • I'm testing on the same model (both simulator and my personal dev device are iPhone 12s) • The code where I change first responder is pasted below. - (void)didPressNextButton {     if (currentReponderIndex == self.textFields.count - 1) {         NSNumber *tag = [self.textFields firstObject];         UITextField *field = [self.view viewWithTag:tag.integerValue];         [field becomeFirstResponder];     } else {         NSNumber *tag = [self.textFields objectAtIndex:currentReponderIndex + 1];         UITextField *field = [self.view viewWithTag:tag.integerValue];         [field becomeFirstResponder];     } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’21