We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not cast value of type 'UICollectionViewTransitionLayout' (0x10b5dbb08) to 'DisplaySwitcher.TransitionLayout' (0x1087e88f8).
In this function
open func startInteractiveTransition() { UIApplication.shared.beginIgnoringInteractionEvents() transitionLayout = collectionView.startInteractiveTransition(to: destinationLayout) { success, finish in if success && finish { self.collectionView.reloadData() UIApplication.shared.endIgnoringInteractionEvents() } } as! TransitionLayout transitionLayout.layoutState = layoutState createUpdaterAndStart() }
The text was updated successfully, but these errors were encountered:
update this method:
func collectionView(_ collectionView: UICollectionView, transitionLayoutForOldLayout fromLayout: UICollectionViewLayout, newLayout toLayout: UICollectionViewLayout) -> UICollectionViewTransitionLayout { let customTransitionLayout = TransitionLayout(currentLayout: fromLayout, nextLayout: toLayout) return customTransitionLayout }
it worked for me.
Sorry, something went wrong.
update this method: func collectionView(_ collectionView: UICollectionView, transitionLayoutForOldLayout fromLayout: UICollectionViewLayout, newLayout toLayout: UICollectionViewLayout) -> UICollectionViewTransitionLayout { let customTransitionLayout = TransitionLayout(currentLayout: fromLayout, nextLayout: toLayout) return customTransitionLayout } it worked for me.
I tried this but, it didn't work.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Could not cast value of type 'UICollectionViewTransitionLayout' (0x10b5dbb08) to 'DisplaySwitcher.TransitionLayout' (0x1087e88f8).
In this function
open func startInteractiveTransition() {
UIApplication.shared.beginIgnoringInteractionEvents()
transitionLayout = collectionView.startInteractiveTransition(to: destinationLayout) { success, finish in
if success && finish {
self.collectionView.reloadData()
UIApplication.shared.endIgnoringInteractionEvents()
}
} as! TransitionLayout
transitionLayout.layoutState = layoutState
createUpdaterAndStart()
}
The text was updated successfully, but these errors were encountered: