9

I'm trying to make my UI design by stack view. Unfortunately, I'm unable, so now I want to delete stackview from my storyboard. I have no idea how to delete it and go restore my previous design without stackview. So how do I do this ?

I already tried this:

Select the stackview and  click Editor -> Unembed

But this situation deleted stack view and the design didn't change back to before stackviewenter image description here

Thank you

Rashwan L
  • 38,237
  • 7
  • 103
  • 107

2 Answers2

13

Editor -> Unembed should be enough to delete the StackView. Here and here are two tutorials about StackViews that you can learn how it works and how to properly implement it.

Rashwan L
  • 38,237
  • 7
  • 103
  • 107
8

In order to delete a Stack View, two methods:

(A) (1) open the navigator then the outline view; (2) select the Stack View that we want to delete/remove (see select the Stack View); (3) In the top Xcode tool banner click Editor then Unembed.(see Editor-->Unembed ) The above will remove the Stack View, which was selected (A) method removes the Stack that "embeds" the UI elements. The UI elements are kept.

(B) (1) open the navigator then the outline view; (2) select the Stack View that we want to delete/remove; (3) hit the "delete" key (B) method removes the Stack and the "embedded" UI elements. The UI elements are deleted as well.

JubiAudio
  • 115
  • 1
  • 5