Skip to main content

Command Palette

Search for a command to run...

Remove arranged subviews from stackview

Published
1 min readView as Markdown

For future reference to remove the arranged subviews completely you need to call

stack.arrangedSubviews.forEach {
      stack.removeArrangedSubview($0)
      $0.removeFromSuperview()
}
36 views

More from this blog

CoderLyn's developer journey

136 posts

I'm an iOS developer, helping millennials with their finances through US neo-bank, Empower.

Before making the switch to development, I was a strategist and GM in the tech space.