Yalantis / DisplaySwitcher

Custom transition between two collection view layouts
https://yalantis.com
MIT License
2.33k stars 190 forks source link

Changing TransitionLayout issue #18

Closed DennisH511 closed 7 years ago

DennisH511 commented 7 years ago

Report a bug

Hi,

Followed the useage guide in a simple project with a button to switch the layout. But trying to switch layout outputs the following error in the TransitionManager class:

Could not cast value of type 'UICollectionViewTransitionLayout' (0x1775b1c) to 'DisplaySwitcher.TransitionLayout' (0xbff60).

screen shot 2016-11-26 at 16 16 02

Have I missed something?

Thanks.

Btw - I tried setting the initial layout as the grid but the first view was still a list. Is that expected behaviour??

Xcode 8.1/swift 3

serejahh commented 7 years ago

Hi @DennisH511. Have you faced the same issue with the example app? There's also a "change layout" button