
Setting up backgrounds for UIView
There are different ways of setting up backgrounds in Swift, depending on the object, method, background type etc. We will go through some of these here. Setting up a background image for a UIView:
Replace “myImage.png” with the name of your image. Note: Make sure you add your images to the Bundle first. To […]
1 |
self.view.backgroundColor = UIColor(patternImage: UIImage(named: "myImage.png")) |