Camera Feed Aspect Ratio

Any way to pull the camera resolution/ratio from the system? iPhones are 4:3 (480 x 640) but the iPad has a different resolution. Limited ability to predict resolution leads to stretched camera feeds.

Thank you.

If just for iOS why not check which device the app is running on then use the appropriate aspect ratio?

If just for iOS why not check which device the app is running on then use the appropriate aspect ratio?