I am using Xcode 11 for a macOS app. When I add a text field(s) to a window and then test, the text field shows up. However when I selected the text field(s) and use the "embed in" button for a stack view they no longer show up.
I have even tried this on a test project with one label and one text field and the same thing happens.
I must be missing something? Why does this occur?
I have even tried this on a test project with one label and one text field and the same thing happens.
I must be missing something? Why does this occur?
For the textField in StackView, you need to set width (height not needed for a vertical stack) constraints for the TextField.
If 2 textFields embedded, setting just for ones enough.
It seems otherwise, the width of all is zero, thus invisible.
Then it shows correctly when running.
If 2 textFields embedded, setting just for ones enough.
It seems otherwise, the width of all is zero, thus invisible.
Then it shows correctly when running.