Returns a context object that identifies the portions of the layout that should change in response to dynamic cell changes.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The layout attributes returned by the cell’s
Layout Attributes Fitting(_:)
The attributes that the layout object originally suggested for the cell.
An invalidation context that includes information about what changes need to be made to the layout.
The default implementation of this method creates an instance of the class provided by the
invalidation class method and returns it. If you want to use a custom invalidation context object with your layout, always override that method and return your custom class.
Subclasses can override this method and use it to perform additional configuration of the invalidation context before returning it. In your custom implementation, call
super so that the parent class can perform the basic configuration of the object.