Sha256: 30a50a6c2c925dbbd3d08ae82d1a4ee28041775be220c40e28e7d1941c45f18f

Contents?: true

Size: 224 Bytes

Versions: 10

Compression:

Stored size: 224 Bytes

Contents

class MPCollectionCellWithSection < UICollectionViewCell
  attr_reader :section

  def setSection(section)
    @section = section.try(:weak_ref)
  end

  def drawRect(rect)
    section.try(:draw_in, rect)
    super
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
motion-prime-1.0.7 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-1.0.6 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-1.0.5 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-1.0.4 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-1.0.3 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-1.0.2 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-1.0.1 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-1.0.0 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-0.9.9.2 motion-prime/support/mp_collection_cell_with_section.rb
motion-prime-0.9.9.1 motion-prime/support/mp_collection_cell_with_section.rb