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.
however, mine ends looking this:
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
Post a Comment