aspectRatio
The content’s aspect ratio.
Declaration
var aspectRatio: CGFloat { get set }Discussion
This property represents the ratio of the content’s width to its height. The value of this property must be greater than 0.0 and less than or equal to 100.0. The default value is 1.0.