0

I have a view with a nav bar and prefersLargeTitles = true I have added a ui scroll view with this code:

let scrollView = UIScrollView()
scrollView.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: self.view.frame.height)
scrollView.backgroundColor = UIColor.blue
scrollView.contentSize.height = 800
view.addSubview(scrollView)

This scroll view works but when u scroll down, it doesnt collapse the nav bar large title or when u go up, it doesnt pull down the large title as it should.

This is an idea of what I am aiming for where it pulls down on the large title and collapses when scroll down:

Scroll View Example Of What I want help with

Thanks

0 Answers0