Post

Replies

Boosts

Views

Activity

CloudKit deploy shows unchanged fields with `unknownType`
I reset my Development environment to match Production. Then I added a new field of type Asset. Attempting to deploy to Production shows 22 field changes and 12 index changes, with the field types being marked unknownType. The diff view shows the correct attribute types, but also reflects the proposed removal of indices. I'm hesitant to push to Production because iI worry my field types will be removed and my current users will see errors. Has anyone seen this before? Anyone know if this is a bug?
2
2
1.6k
Sep ’22
UICollectionViewCompositionalLayout collapsing cells during scroll
I'm using a UICollectionViewCompositionalLayout with estimated cell heights and simple UICollectionViewCell items that contain a UILabel. I'm using the common self-sizing AutoLayout pattern with the label anchored to the top and bottom of the contentView. The collectionView renders correctly when the controller is presented, but when I scroll to the bottom and then scroll back up, the UILabel is collapsed, leaving what looks like a 1px sliver of content. Momentarily swiping up to the home screen and canceling the gesture causes the cell heights to snap to the correct values. I've tried calling layoutIfNeeded before cells are returned. I've checked prepareForReuse and my AutoLayout code. I've fiddled with various UILabel compression and content hugging priorities and nothing seems to change this behavior. Anyone experience anything similar or have a suggestion for a fix?
1
0
599
Sep ’21
UICollectionViewController + UITextField autoscroll behavior
Hi all! I have a UICollectionViewController with cells that contain UITextField items. On iOS 14, switching firstResponder status between each text field programmatically caused the UICollectionView to auto-scroll the items into view. On iOS 15 this behavior still occurs, but the animation is jittery. The scrollview jumps up and down rapidly while the animation occurs. As a sanity check, I have no other code executing while this animation occurs. The contentInsets and contentOffset are only being affected by the firstResponder animation. Any ideas why this might be happening?
5
0
1.5k
Sep ’21