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.
tried playing z index didn't layers somehow not flat can see in following view hierarchy:
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:
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
Post a Comment