For example, I have a 100*100 size imageview or button, and I want to set its image or backgroundImage with a local .png file. Based o
100*100
backgroundImage
.png
Use the assets catalog. Xcode will manage the @1x, @2x, @3x easilly, and tell you the dimensions for the images.
With it it's easy to manage the AppIcon and LaunchScreen images.