[IOS] Let’s Tracking Visible Cell on ScrollView

In my experience, When i makes content impression tracking service then i uses iOS UIKit default delegate method such as UITableView & UICollectionView willDisplayCell method, didEnterVisibleStatus in Texture(AsyncDisplayKit) and so on.

Recently I faced some difficult situation. My company colleague want to exquisite & precise content impression tracking service about horizontal scrollable contents.

But, UITableView & UICollectionView willDisplayCell delegate method can’t support more exquisite tracking service. (In Texture(ASDK), didEnterVisibleStatus too)

So, In my opinion, I think that best method is create & define tracking area.

At first, you can make trackingRect (CGRect)

and you should get visibleCells (In Texture case, use visibleNodes), and you should convert CGRect of cell with rootView (self.node is rootView of UIViewController) and just use CGRect.contains: method with trackingRect.

That’s all! Thank you for reading

I’m looking for more effective and good method. if you know it then please reply on comment.