@asaksala Can you please indicate which callback do you use to get the selected section? I wish to apply the same workaround by using setContentOffset(), but I'm not sure when to make this call?
Post
Replies
Boosts
Views
Activity
Thanks for your comment, but this is a UICollectionView rather than a UITableView. In any case, changing the height of the section header probably won't help since header with any height will still partially hide the cell underneath it.
I don't set the size for the cells. You can see the code at https://github.com/yoasha/CollectionViewDemo
The main issue is that index titles in my case sometimes appear and sometimes not. UITableView updates the content view constraints automatically to make room for the index titles when they appear, while the UICollectionView doesn't. I therefore need in collection view to manage this manually rather than let it do the work for me.
No need for that. Modifying the trailing constraint (as you previously suggested) did the trick. The only issue with this solution is that I need to make some assumptions (where iPad requires trailing of 20 vs. 10 for iPhone) and these numbers can change in future iOS updates according to Apple UI design changes.
It could be very useful if UICollectionView provided us API to get the required trailing, to eliminate any assumptions.
I used Auto Layout constrains to to lower down the content of the first cell in any section. This is a workaround rather than an ideal solution, but it works for me so far.
Hi, did you figure it out?
I'm facing the same issue now. Everything seems to be configured correctly but device name isn't returned. Testing with iPadOS beta 6 and Xcode 14 beta 6
I'm having the same issue as KRATOSFM, so I followed your instructions. The codesign -d --entitlements - returned several entitlements but the user-assigned-device-name entitlement was missing.
This is really interesting since I can clearly see this entitlement at the target setting in Xcode under "Signing & Capabilities" -> iOS section -> Xcode Managed Profile > tapping the "info" button.
Any ideas?
Do I need to add a capability under "Signing & Capabilities" tab in Xcode? Or do I need to manually add a row in the entitlements file in Xcode? In Apple documentation they specify that "In your app’s .entitlements file, add the assigned entitlement key and value pair" but I'm not sure what value to assign the "com.apple.developer.device-information.user-assigned-device-name" key?
Never mind, figured it out. Value as documentation specifies is boolean.
Thank you for your quick reply!
I added a bug related to this issue: FB11567278
I also added another bug related to inconsistent behavior of VoiceOver in table view vs. collection view. You might want to view it as well: FB11566795
Note that both bugs contain screen recording and full sample project that should hopefully make it easy to reproduce issue.
Let me know if you need further info.
Thank you for your quick answer. The snapshot is indeed expected, but resizing the width of the iPad's window from regular to compact is unexpected to me. This is for sure a new behavior, as in previous versions snapshotting didn't affect the horizontal size class. Any idea if this resizing is intentional? If so, to what purpose?
Same issue here. I added some strings without a translation and now wish to export and send them to the translator. Once translated, and got them as a strings file, I don't see any way to easily import them into the string catalog. These two issues forcing me to keep using the aging strings files.
Try using Safari with a Private Window. Fixed the issue for me.