Every view has a layer that does the rendering. What confuses me is that you can't set the corner radius or border to the stack view, yet when you hide one of the arranged subviews the rest of them fill up the stack view.
Furthermore, Apple doc says that the stack view only manages its arranged subviews.
But, how does the stack view resize its subviews? Does the stack view's layer do the resizing when an arranged subview is hidden? If not, what is then the usage of the layer property in a stack view?