ReloadableView

public protocol ReloadableView: class

A view that can be reloaded with data.

UITableView and UICollectionView conform to this protocol.

  • The bounds rectangle, which describes the view’s location and size in its own coordinate system.

    Declaration

    Swift

    var bounds: CGRect
  • Returns whether the user has touched the content to initiate scrolling.

    Declaration

    Swift

    var tracking: Bool
  • Returns whether the content is moving in the scroll view after the user lifted their finger.

    Declaration

    Swift

    var decelerating: Bool
  • Reloads the data synchronously. This means that it must be safe to immediately call other operations such as insert.

    Declaration

    Swift

    func reloadDataSynchronously()
  • Registers views for the reuse identifier.

    Declaration

    Swift

    func registerViews(withReuseIdentifier reuseIdentifier: String)
  • Performs a set of updates in a batch.

    The reloadable view must follow the same semantics for handling the index paths of concurrent inserts/updates/deletes as UICollectionView documents in performBatchUpdates.

    Declaration

    Swift

    func perform(batchUpdates: BatchUpdates)