NSCollectionView resizes items like iTunes

Is it possible that NSCollectionView is dynamically resizing elements? I want it to behave like iTunes, where elements can range from let, from 120 to 160, but if it drops below 120, it resets to 160 and loses the column, and if it gets larger than 160, it resets to 120 and adds column.

Currently, my view of the collection will add and remove columns with a change in width, but will not resize the actual elements.

+4
source share

Source: https://habr.com/ru/post/1539126/


All Articles