Instantly share code, notes, and snippets.

What would you like to do?
Code to get a UIColour to match the BeaconColor enum for Estimote iBeacons
public UIColor GetColourForBeacon(BeaconColor beaconColor)
switch (beaconColor)
case BeaconColor.Blueberry:
return UIColor.FromRGB(72, 61, 139);
case BeaconColor.Mint:
return UIColor.FromRGB(173, 255, 47);
case BeaconColor.Ice:
return UIColor.FromRGB(72, 209, 204);
case BeaconColor.White:
return UIColor.White;
return UIColor.LightGray;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment