Hello,
I am using compositional layout with a UICollectionView, and each section has a visibleItemsInvalidationHandler that applies a transform to the section items, the transform is based on contentOffset.y.
When I load the data the first time and no scroll has happened the transform is not applied because the visibleItemsInvalidationHandler is not called until scroll happens.
I tried calling collectionView.collectionViewLayout.invalidateLayout() but it doesn't seems to help. I can scroll the collection view programmatically and that kinda works but I'm still wondering if there's a way to invoke programmatically the visibleItemsInvalidationHandler.
Edit:
Forgot to add that I'm also using UICollectionViewDiffableDataSource to load the data.
Post
Replies
Boosts
Views
Activity
Hello,
I'm experiencing a weird issue on the iOS 15 simulator (unfortunately I don't have a device with 15 installed yet).
The issue I see is that the call to SecItemAdd returns OSStatus -25293 (errSecAuthFailed).
The attributes dictionary passed looks like this:
var query: [String : Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrAccount as String: key,
kSecAttrService as String: service,
kSecAttrAccessControl as String: getSecAccessControl(),
kSecUseAuthenticationContext as String: context,
kSecValueData as String: data
]
the getSecAccessControl returns a SecAccessControl created like this:
access = SecAccessControlCreateWithFlags(nil,
kSecAttrAccessibleWhenUnlockedThisDeviceOnly,
.userPresence,
&error)
if I do not add the kSecAttrAccessControl item I don't see any error.
The same code works as expected on the simulator with iOS 14.
Looking at the documentation didn't help, anybody has hints about this? Maybe it's bug I'm not aware of?
Thank you in advance