Enumeration Case

SKSceneScaleMode.aspectFit

The scaling factor of each dimension is calculated and the smaller of the two is chosen. Each axis of the scene is scaled by the same scaling factor. This guarantees that the entire scene is visible but may require letterboxing in the view.

Declaration

case aspectFit = 2