UIAspectRatioConstraint.AspectRatio does not support math operations. It is common to use fractions and ratios when dealing with aspect ratios, so to set the aspect ratio to 16/9 I have to first print it using command line or something then copy paste it into the aspect ratio value