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
Hello @rechsteiner
I have noticed that if I pop a viewcontroller and in a row I change the selectIndex of the PagingViewController nothing is visible because collectictionView.window is nil .
I had to perform a DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) to make it work
Any hint ?
File PagingController.swift, L67
The text was updated successfully, but these errors were encountered:
Hi! Yeah, the paging controller only allows changing the selected item when the view controller is visible. I guess you are calling select(pagingItem:) right after calling popViewController? In that case, the view controller will not yet be visible. Maybe you could use the completion handler on the transition controller like this?
Hello !
Oh I will try and will come back to you :) Ty
aiKrice
changed the title
Why collectionView.window is nil is the pagingController is not visible ?
Why collectionView.window is nil if the pagingController is not visible ?
Sep 4, 2024
Hello @rechsteiner
I have noticed that if I pop a viewcontroller and in a row I change the selectIndex of the PagingViewController nothing is visible because collectictionView.window is nil .
I had to perform a DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) to make it work
Any hint ?
File PagingController.swift, L67
The text was updated successfully, but these errors were encountered: