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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -