swift - UIStackview aligning and dividers -


i'm trying create horizontal stackview inside of table view cell displays information separated dividers. essentially, want stackview end looking solution here: create vertical lines between uilabels inside of stack view.

enter image description here

however, mine ends looking this:

enter image description here

i'm having trouble making padding of post , members more even. also, how can make divider lines shorter depicted in solution provided above.

thanks in advance.

play around the stack view's distribution setting; "fill equally" should give closer want.

the divider line height depends on height of stack view (which in turn depends on cell height, specified in tableview(_:heightforrowat:)), either make stack view smaller or nest dividers in bigger view, setting distance edges.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -