How I can make a random color function using Swift?
import UIKit class ViewController: UIViewController { var randomNumber = arc4random_uniform(20)
import SwiftUI extension Color { static var random: Color { return Color(red: .random(in: 0...1), green: .random(in: 0...1), blue: .random(in: 0...1)) } }
let randomColor: Color = .random