I've read a lot of manuals/tutorials on ScrollViews with vertical scrolling, but havent figured out how to solve my problem so far.
You can see my ScrollView visual plan here:
The most helpful answer was here, on StackOverflow: https://stackoverflow.com/a/30282707/3718319
Accodring to it, I made the following:
My ScrollView(makred red on my screenshot) has got 0,0,0,0 constraints and equal width to ViewController's view. Inside my ScrollView I made a ContentView(makred orange on my screenshot), that contains (makred green on my screenshot):
1) ImageView with constant height and pinned top/left/right to ContentView.
2) View with constant height and pinned top to ImageView, left/right to ContentView.
3) View with constant height and pinned top to the View above it, left/right to ContentView.
4) TextView pinned top to the View above it, left/right to the ContentView and pinned bottom to the ContentView.
So, all the vertical constraints are set, and my scrollable content height should change according to height of text view. That's what is my goal.
But I got error from storyboard, telling: Need constraints for: Y position or height.
Could you please help me solve this problem?
Thanks!