Am trying to create a game completely in Xcode, no storyboarding. My concern is not to go into the screen's safe area's layout.
While I have found a way to do this for GameViewController: UIViewController, I have no way to do it for the the GameScene: SKScene, which is where all the action takes place.
I have tried numerous methods to get the values before the GameScene is presented, looking at screen values in viewDidMoveToSuperview and other views that are supposedly called last in GameViewController, but the coordinates I get are with the full screen size, or an empty set in CGRect.
Can someone tell me how to get this done? It's been 2 days!
Thanks
While I have found a way to do this for GameViewController: UIViewController, I have no way to do it for the the GameScene: SKScene, which is where all the action takes place.
I have tried numerous methods to get the values before the GameScene is presented, looking at screen values in viewDidMoveToSuperview and other views that are supposedly called last in GameViewController, but the coordinates I get are with the full screen size, or an empty set in CGRect.
Can someone tell me how to get this done? It's been 2 days!
Thanks
For anyone coming across this same question I found the answer here: Use the DispatchQueue.main.async