Swift UIColor utilities : Random Hex colour codes, Random UIColor

Simple to use swift functions which are very useful in development and testing.

1. Generating random UIColor in Swift: Function returns random UIColor each time

func randomUIColor(alpha:CGFloat!)-> UIColor
{
    return  UIColor.init(red:(CGFloat(arc4random_uniform(256))/255.0), green:CGFloat(arc4random_uniform(256))/255.0, blue: (CGFloat(arc4random_uniform(256))/255.0), alpha: alpha)
}

2.Random HEX Color code in Swift 3: Function returns random 3 char Hex colour code each time.

Read more

Download Xcode: Download Xcode 13/12/11/10 xip

Download links for Xcode 10.1, Xcode 10, Xcode 9, Xcode 8, XCode 7, XCode 6 are given below. The list is organized in newest first and a developer account login will be required. Latest Xcode version on top BUY ME A BEER!! Xcode 13 13.0 Xcode 12 12.5 12.4 12.3 12.2 12.1 12.0.1 12.0 Xcode 11 … Read more

NEED A JOB? NEED TO HIRE? NEED HELP?

Join group of Software Professionals

iOS DEVELOPER’S DEN