I have set the constraints for two views correctly and the preview for different devices is good. I even used size class for changing the aspect ratio for iPads
Now when I stack these two views, the size of the resulting stack changes dramatically.
Why the size of the resulting stack is weird in this case?
I am a beginner in iOS programming and would appreciate any help here.