aspectRatio(for:)
The aspect ratio of the image this component will present for the requested viewing mode.
Declaration
func aspectRatio(for viewingMode: ImagePresentationComponent.ViewingMode) -> Float?Return Value
Returns nil if the requested viewing mode is not in the component’s availableViewingModes set.