Created
September 19, 2022 07:20
-
-
Save SwiftSIQI/4a6c00dcb035a3539d98fa4e03f9e4af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class func randomColor() -> UIColor { | |
| let red = CGFloat(arc4random_uniform(255))/CGFloat(255.0) | |
| let green = CGFloat( arc4random_uniform(255))/CGFloat(255.0) | |
| let blue = CGFloat(arc4random_uniform(255))/CGFloat(255.0) | |
| return UIColor(red: red, green: green, blue: blue, alpha: 1) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment