ios – Is utilizing placeholder (clean) views for spacing causes thought of unhealthy kind?


Particularly, I’m utilizing UIStackView and Auto Structure to place subviews inside a modal sheet.

I’m having hassle positioning my subviews such which can be laid out properly and adaptively throughout varied display screen sizes/orientations.

Potential options:

  • UITraitCollection can’t be used as a result of for various iPhone display screen sizes, they’re of the identical dimension class
  • Additionally can not use static layoutMargins insets as a result of this isn’t adaptive

Query: I feel I might have the ability to successfully manipulate the spacing throughout the UIStackView by including middleman placeholder views and setting their peak/width constraints in Auto Structure. However is that this not a great resolution? If not, what is mostly the easiest way to do that? Thanks.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles