UIColor from an image pattern
suggest changeYou can create a UIColor object using an image pattern by using the UIColor(patternImage:_) method.
btn.backgroundColor = UIColor(patternImage: UIImage(named: "image")!)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents