UIScrollView moving view up on iOS 15

Hi,

I had the problem of my navigationBar being transparent on iOS15.

After setting the scrollEdgeAppearance as suggested the problem got resolved.

appearance.configureWithOpaqueBackground()
appearance.backgroundColor = <your tint color>
navigationBar.standardAppearance = appearance;
navigationBar.scrollEdgeAppearance = navigationBar.standardAppearance

However, wherever I have a scrollView embedded in my ViewController, the view is moved up for around 50 px.

Did anyone experience a similar issue?