skip to Main Content

Xcode – How to make UIView which is inside scrollview adapt to screen orientation when user changes screen from portrait to landscape in swift

How to make UIView which is inside scrollview adapt to screen orientation when user changes screen from portrait to landscape in swift? var scrollView: UIScrollView = { var scroll = UIScrollView() scroll.translatesAutoresizingMaskIntoConstraints = false return scroll }() view.addSubview(scrollView) scrollView.topAnchor.constraint(equalTo: view.topAnchor,…

VIEW QUESTION
Back To Top
Search