hyperoslo / Tabby

⛩ A fancy tabbar
Other
103 stars 14 forks source link

Set zPosition to show separator and indicator on top #11

Closed zenangst closed 8 years ago

zenangst commented 8 years ago

The separator was not showing because it was below the collection view. Setting zPosition on the layer fixes the issue.

zenangst commented 8 years ago

Seems like the same thing happened with the indicator, so I fixed that as well 😁

vadymmarkov commented 8 years ago

@zenangst 👍

RamonGilabert commented 8 years ago

zindexonemillion-big

onmyway133 commented 8 years ago

@zenangst just a question, bringSubviewToFront does not work here?

zenangst commented 8 years ago

@onmyway133 depends on when it gets added to the hierarchy, that only works if you call that method when all views have been added. I thought this was a more feasible solution as zPosition defaults to 0, which would guarantee the order regardless of when the views are added.