I have stacked a view has a stack of labels and a TableView
in single stack view (as shown in the picture below), however it’s giving me a constraints for the x and y position of the two views inside the main stack view. I tried adding constraints for both views but it didn’t work.
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
It seems like you don’t have constraints for the stack view itself.
You could click this blue icon to see your layout constraints(you should check both Horizon and Vertical).
Also, if your constraint has problems, you can see there is a red arrow, click it to see the error message.