You can do something like save the property when the view is deleted. Then change it when it disappears using:
- (void)collectionView:(UICollectionView *)collectionView didEndDisplayingSupplementaryView:(UICollectionReusableView *)view forElementOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath;
Depending on how you want your update to happen, you can either save bool isVisible or start NSTimer when it appears and stop the timer when it disappears.
Unfortunately, this is not like the visibleSupplementaryViews method.
source share