How can we make a spacer view with automatic width between two views inside UIStackview?

Viewed 129

If we have 2 labels inside UIStackView, and I want to set a flexible width between them like this image:

enter image description here

what is the best way? in SwiftUI there is a function named: Spacer() , is there something similar in UIKit?

0 Answers
Related