I have requirement to apply border on views.
Views might have collection view or single image or textview. Now the problem is I want to apply border of those view. As I have used top, leading and width and height constraint and updating as border slider change the value but it behaves weird.
I have below view when app is loaded.
After applying constraint updates from loop, the views looks like
I am trying since 6 hours but the way of updating constrains to apply border not working so can any one suggest good approach to apply border without updating constraint of views?