Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

xcode macosx have view resize when window size changed

func createSceneContent() {
    scene.scaleMode = .aspectFit
    scene.backgroundColor = .black
    // Add additional scene contents here.  
    ...
}
Source by developer.apple.com #
 
PREVIOUS NEXT
Tagged: #xcode #macosx #view #resize #window #size #changed
ADD COMMENT
Topic
Name
6+3 =