ios - Nothing is displaying in Simulator with viewWillLayoutSubviews -
within gameview controller.swift file, removed viewdidload , put in viewwilllayoutsubviews because using dimensions of device in calculations. however, hello world sklabelnode no longer displayed in simulator. ideas on i'm doing wrong?
override func viewwilllayoutsubviews() { super.viewwilllayoutsubviews() let skview = self.view skview if skview.scene != nil{ skview.showsfps = true skview.showsnodecount = true skview.showsphysics = true // create , configure scene let scene = skscene(size: skview.bounds.size) scene.scalemode = skscenescalemode.aspectfill; // present scene skview.presentscene(scene) }
Comments
Post a Comment