ios - Overlapping Views in UIStackView -


i have horizontal stack view added arranged sub views (7 cells). each 1 of cells in stack has circular badge exceeds view boundaries (negative constraint). when running, can see below, each cell on top of badge of previous cell. change order badges visible.

enter image description here

tried playing z index didn't layers somehow not flat can see in following view hierarchy:

enter image description here

any idea or suggestion how it?

thanks.

the documentation uistackview class tells that:

the order of subviews array defines z-order of subviews. if views overlap, subviews lower index appear behind subviews higher index.

which experienced in question. on come specific case did trick of changing semantic of view rtl can bee seen here:

enter image description here

this not covering generic case because device may have been set rtl language in global settings. generic case guess need check interface semantic , force opposite direction stack view.

p.s. it's kind of hack ideas how reorder z-order of subviews in different way welcome!


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -