My questions is, is it possible to have a UIView display an image, and if so, how so I do it? All I can find is the colorwithpatternImage
which no longer works
This took me quite a bit of effort, capturing and passing along for reference. See below for full example of generation and use with swift.
Reference Example
Demo App
Code Excerpt
Here is how a UIView is textured in the demo, see code for full listing -
func genTexturedView(_ view:UIView) {
...
image.image = UIImage(named:"purple_example");
view.addSubview(image);
print("ViewController.genTexturedView(): Textured View added");
return;
}