The code below shows a SKView
until you change skHeight
to 2050 or some higher value like 5000.
1) How can you make the SKView
appear even at heights of 2050 or 5000?
2) What's the maximum size for SKViews
?
To reproduce:
1) Run the code below. You will see the SKView
represented as a gray window.
2) Change skHeight
to 2050 or 5000. The SKView
no longer appears.
class TestViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Create SKView
let skHeight = CGFloat(2050)
let skFrame = CGRect(x: 0, y: 0, width: 100, height: skHeight)
let skView = SKView(frame: skFrame)
skView.backgroundColor = UIColor.red
// Add test view to <scrollView>
view.addSubview(skView)
}
}