UIColorPickerViewController on Catalyst

When presenting the UIColorPickerViewController directly in a Catalyst app selecting a color will invoke
Code Block
colorPickerViewControllerDidSelectColor(_ viewController: UIColorPickerViewController)

However if you click the "Show Colors" button to see the expanded color selection pop over then the change or selection of colours in this window won't invoke
Code Block
colorPickerViewControllerDidSelectColor(_ viewController: UIColorPickerViewController)
and there doesn't seem to be a way to capture the color.
Post not yet marked as solved Up vote post of DavidNZ Down vote post of DavidNZ
851 views

Replies

same
Please make sure that the UIColorPickerViewController instance is retained even after it is dismissed. Once the UIColorPickerViewController instance is released, the delegate will no longer be messaged. So it is import to retain the UIColorPickerViewController instance as long as you want the delegate to be informed.
  • There's been no activity on this and no upvotes, so I wanted to mention that this IS the answer. Thanks!

Add a Comment