Creates an image object from the data at the specified URL and sizes it to the desired width and height.
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
A URL that specifies an image file on a remote server. The image file can be in any format supported by the system, but it is recommended that you use PNG images.
The width (measured in points) to use for the image. The image is scaled horizontally, as needed, to fit the specified size.
The height (measured in points) to use for the image. The image is scaled vertically, as needed, to fit the specified size.
A new image object or
nil if the specified image data was invalid.