Instance Property


A string that identifies the purpose of the view.


var reuseIdentifier: String? { get }


The collection view identifies and queues reusable views using their reuse identifiers. The collection view sets this value when it first creates the view, and the value cannot be changed later. When your data source is prompted to provide a given view, it can use the reuse identifier to dequeue a view of the appropriate type.

See Also

Reusing Cells

func prepareForReuse()

Performs any clean up necessary to prepare the view for use again.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software