Skip to content

Delegate and UI improvements#24

Open
andrei-sadagurschi wants to merge 11 commits intojohankasperi:masterfrom
andrei-sadagurschi:master
Open

Delegate and UI improvements#24
andrei-sadagurschi wants to merge 11 commits intojohankasperi:masterfrom
andrei-sadagurschi:master

Conversation

@andrei-sadagurschi
Copy link
Copy Markdown

  • added color picker delegate for getting notified when the color changes;
  • added conversion from extended RGB space to sRGB for iOS 10.0 and above (sometimes the returned colors need to be used in sRGB with red, green and blue values between 0.0 and 1.0);
  • fixed compile warnings;
  • don't recreate color wheel, brightness view and selected color view each time the color is set from outside;
  • added laryer corner radius and border to selected color view;

Copy link
Copy Markdown

@jordanhbuiltbyhq jordanhbuiltbyhq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. It would be better to use CGFloat.pi instead of CGFloat(Double.pi). Could remove the print() statements in setupIfNeeded.

@andrei-sadagurschi
Copy link
Copy Markdown
Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants