##PopColorPicker
A color picker component for Xamarin.iOS.
Support both iPhone and iPad.
- Custom color
- Save favorite colors
- Press-and-hold to delete a favorite color
- Random colors
- Color palette
colorPickerViewController = new ColorPickerViewController();
// assign event for cancelling
colorPickerViewController.CancelButton.Clicked += (object sender, EventArgs e) => {
if (UserInterfaceIdiomIsPhone) { // for iPhone
DismissViewController(true, null);
} else { // for iPad
_popoverController.Dismiss(true);
}
};
// assign event for done selecting
colorPickerViewController.DoneButton.Clicked += (object sender, EventArgs e) => {
if (UserInterfaceIdiomIsPhone) { // for iPhone
DismissViewController(true, null);
} else { // for iPad
_popoverController.Dismiss(true);
}
var selectedColor = ccolorPickerViewController.SelectedColor;
};
Please check out the sample project about how to use it.
PopColorPicker is licensed under the terms of the MIT license.