Does anyone know why my method isn't working properly ?

Hi , I'm trying to make a function triggered by a button click to transition to a different view controller which has a scroll view (written programatically) with some elements ,when I run the project everything works ,but when I transition to that screen ,the scroll view doesn't show up ,neither does anything on it .


The function with the button :

@objc func buttonCliked(_ : UIButton) {


let moreViewController = storyboard?.instantiateViewController(withIdentifier: "MoreVC") as! MoreViewController

self.show(moreViewController, sender: UIButton.self)

}


The scroll view implementation :

lazy var scrollView: UIScrollView = {

let view = UIScrollView()

view.translatesAutoresizingMaskIntoConstraints = false

view.contentSize.height = 4560

view.backgroundColor?.withAlphaComponent(0)

return view

}()


override func viewDidLoad() {

super.viewDidLoad()


view.addSubview(scrollView)

setUpCards()

}