riteshhgupta / TagCellLayout

Made in Swift - Tag layout for UICollectionView supporting 3 types of alignments - Left || Centre || Right
MIT License
358 stars 36 forks source link

Does it works with horizontal scrolling? #10

Open filipealva opened 7 years ago

riteshhgupta commented 7 years ago

Hey @filipealva! Just wondering if you need horizontal scrolling only then why do you need custom layout, I guess default flow-layout should be sufficient ?

filipealva commented 7 years ago

Hi @riteshhgupta! Actually it is not sufficient. I need the items to be left aligned while the default flow-layout put them in justified alignment.

Every custom flow layout to left align the items that I've found only work with vertical scrolling :/

riteshhgupta commented 7 years ago

@filipealva I get your point 👍 But you will get this issue (justified alignment) only if you have elements less than the collection-view width, otherwise once it flows outside the boundaries of collection-view even flow-layout should work fine, right ? Let me work on it, will update it soon!

filipealva commented 7 years ago

I'm not sure if it is a good idea to constrain the width of my cells based on the width of collection view since the scrolling is horizontal it should not matter, or I'm missing something?

This is what I'm trying to achieve: captura de tela 2017-03-10 as 18 04 54

And this is what I have with default flow layout: captura de tela 2017-03-10 as 18 16 02

Thank you very much for helping me, I really appreciate it!

filipealva commented 7 years ago

Hey man, I think I solved it!

The solution ended up quite specific for a "left aligned horizontal scrolling layout". I'll post it into my GitHub soon, I can notify you if you are interested in.

Tks again!

atifsaeed14 commented 7 years ago

Hi @filipealva can you post this solution (horizontal scrolling) on GitHub...

riteshhgupta commented 7 years ago

Hey @filipealva, if possible can you open a PR to add this feature in TagCellLayout?

MasamMahmood commented 3 years ago

@filipealva Can you please share example code for Horizontal scrolling?

Art3mS1d commented 3 years ago

@filipealva I know it past over four years but can you share your solution?

filipealva commented 3 years ago

Hey guys, I'll revisit this code over the weekend and try to make it available by next week.

bluepixeltech commented 3 years ago

Can anyone please share how to make the scroll direction horizontal?

abrarmatin commented 3 years ago

@filipealva is the horizontal solution posted anywhere? 😃