'Xcode .xcassets and image set how to programatically get localized image giving Locale or language code?

I have localized images in image sets in Assets.xcassets It works ok with system language settings But how I can maually programatically retrieve image in given locale (i.e. for specific language code) from this assets

something like this

let image = UIImage(names: "image", locale: "de-DE") ???



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source