Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let picker = UIColorPickerViewController()
- present(picker, animated: true, completion: nil)
- extension ViewController: UIColorPickerViewControllerDelegate {
- // Called once you have finished picking the color.
- func colorPickerViewControllerDidFinish(_ viewController: UIColorPickerViewController) {
- //viewController.selectedColor
- }
- // Called on every color selection done in the picker.
- func colorPickerViewControllerDidSelectColor(_ viewController: UIColorPickerViewController) {
- //viewController.selectedColor
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement