aspectRatio
The ratio between width and height of the screen.
Declaration
var aspectRatio: Float { get set }Discussion
In a 3D game, you set this value to the same aspect ratio you use to create your perspective matrix, which is typically width/height.