You cannot load images directly with @2x or @3x, system selects appropriate image automatically, just specify the name using UIImage:
UIImage(named: "green-square-Retina")
You cannot load images directly with @2x or @3x, system selects appropriate image automatically, just specify the name using UIImage:
UIImage(named: "green-square-Retina")