Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCollectionViewTransitionLayoutMBS class.

NSCollectionViewTransitionLayoutMBS.currentLayout as NSCollectionViewLayoutMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The collection view’s current layout object.

Use this object to retrieve the initial layout attributes for elements of the collection view. If the transition is ultimately cancelled, the collection view animates its items back to the attributes provided by this object.
(Read only property)

NSCollectionViewTransitionLayoutMBS.nextLayout as NSCollectionViewLayoutMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The collection view’s new layout object.

Use this object to retrieve the final layout attributes for elements of the collection view. If the transition completes as expected, the collection view animates its items to the attributes provided by this object.
(Read only property)

NSCollectionViewTransitionLayoutMBS.transitionProgress as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The completion percentage of the transition.

During the transition, set the value of this property periodically and call the invalidateLayout method to force the collection view to update item positions. For example, when driving a transition using a gesture recognizer, you can set this property from the handler method of your gesture recognizer.
(Read and Write property)

The items on this page are in the following plugins: MBS MacControls Plugin.


The biggest plugin in space...