You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
working with collectionView, sometimes you want the collectionViewDelegate to
decide whether to allow focus or not via func collectionView(_ collectionView: UICollectionView, canFocusItemAt indexPath: IndexPath) -> Bool
after some time of investigation, I discovered that when a collectionviewcell overrides
canBecomeFocused, the collectionViewDelegate function func collectionView(_ collectionView: UICollectionView, canFocusItemAt indexPath: IndexPath) -> Bool
doesn't get called.
to solve this issue, I just commented the code
in ParallaxCollectionViewCell,
…comeFocused : Bool` to unlock usage of `func collectionView(_ collectionView: UICollectionView, canFocusItemAt indexPath: IndexPath) -> Bool` from the `UICollectionViewDelegate`. You can still override `canBecomeFocused` in your custom `UICollectionViewCell` implementation as in the example's `CollectionViewCell` -> Addressed #9
working with collectionView, sometimes you want the collectionViewDelegate to
decide whether to allow focus or not via
func collectionView(_ collectionView: UICollectionView, canFocusItemAt indexPath: IndexPath) -> Bool
after some time of investigation, I discovered that when a collectionviewcell overrides
canBecomeFocused, the collectionViewDelegate function
func collectionView(_ collectionView: UICollectionView, canFocusItemAt indexPath: IndexPath) -> Bool
doesn't get called.
to solve this issue, I just commented the code
in ParallaxCollectionViewCell,
The text was updated successfully, but these errors were encountered: