infinitered / rmq

RMQ - RubyMotionQuery
MIT License
307 stars 52 forks source link

distribute(:flow) #158

Open markrickert opened 9 years ago

markrickert commented 9 years ago

It would be great to be able to append a bunch of views and then call something like:

.distribute(:flow, options = {
  padding: 5,
  center_last: true
})

to turn the views into a flow based on the width of the parent view:

  X  X  X
  X  X  X
     X

or without the center_last

  X  X  X
  X  X  X
  X
twerth commented 9 years ago

Yes, that was an intention of distribute, to be able to do both horizontal and vertical at the same time. I like this idea

vaughankg commented 9 years ago

Yes please!

This is basically a simple version of Collection View (which is never very simple).

markrickert commented 9 years ago

I already have 85% of the code written to do this so it shouldn't be too hard to integrate into RMQ when i get some time :)

GantMan commented 9 years ago

I'm next to him and can corroborate.

vaughankg commented 9 years ago

Nice. It seems like you have this covered but I would also be happy to help.