Module: Prime::AsyncFormMixin

Defined in:
motion-prime/sections/_async_form_mixin.rb

Instance Method Summary collapse

Instance Method Details

#reload_collection_dataObject



3
4
5
6
7
8
9
10
11
# File 'motion-prime/sections/_async_form_mixin.rb', line 3

def reload_collection_data
  # FIXME: duplicated cells (see cached_cell error)
  return super unless async_data?
  sections = NSMutableIndexSet.new
  number_of_groups.times do |section_id|
    sections.addIndex(section_id)
  end
  collection_view.reloadSections sections, withRowAnimation: UITableViewRowAnimationFade
end