Instance Method

reloadSections(_:)

Reloads the data in the specified sections of the collection view.

Declaration

func reloadSections(_ sections: IndexSet)

Parameters

sections

The indexes of the sections to reload.

Discussion

Call this method to selectively reload only the items in the specified sections. This causes the collection view to discard any cells associated with those items and redisplay them. This method also discards any placeholders in the specified sections.

See Also

Reloading Content

var hasUncommittedUpdates: Bool

A Boolean value indicating whether the collection view contains drop placeholders or is reordering its items as part of handling a drop.

func reloadData()

Reloads all of the data for the collection view.

func reloadItems(at: [IndexPath])

Reloads just the items at the specified index paths.

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