[Snippet] Setting a pattern as the background image
A single line of code that allows you to use images as background patterns. Note that you need to define the image in the Image.xcassets file.
view.backgroundColor = UIColor(patternImage: UIImage(named: myImage)!)














