Question:
I currently have a UIScrollView with a UIImageView (top image) positioned below the UINavigationBar. However, I want to position the UIImageView at the very top of the screen (bottom image). Is there a way to implement this?What I’ve tried so far: I added a UIScrollView extension (source) that is supposed to scroll down to the view parameter provided, but it hasn’t worked for me.


Answer:
This may help.scrollView.contentInsetAdjustmentBehavior = .never
For more information,
This property specifies how the safe area insets are used to modify the content area of the scroll view. The default value of this property is UIScrollViewContentInsetAdjustmentAutomatic.
If you have better answer, please add a comment about this, thank you!