How to create UIStackview programmatically? Is there any way to modify stack count dynamically?
Asked
Active
Viewed 1,122 times
2
-
2http://stackoverflow.com/questions/30728062/add-views-in-uistackview-programmatically – Sudhir May 10 '16 at 13:05
-
Have a look here on how to create the stackview: https://riptutorial.com/ios/example/4534/create-a-horizontal-stack-view-programmatically For modifying the stackview dynamically i suggest you use the UIView.isHidden property, then you dont have to actually remove the view from the stackview. Have a look here on how to: https://stackoverflow.com/questions/46326302/uistackview-hide-view-animation – Andreas Grahn Jan 29 '20 at 07:57