chrs1885 / sheetycolors Goto Github PK
View Code? Open in Web Editor NEWAn action sheet styled color picker for iOS.
License: MIT License
An action sheet styled color picker for iOS.
License: MIT License
iOS 13 comes with SPM support which can be used to manage your app's dependencies. SheetyColors should provide support for it as well.
When entering specific Hex values (e.g. #ABCDEF) into the HSB color picker, it will set a different value. The problem is that SheetyColors will fall back to the nearest color that can be represented with integer values only.
If a user explicitly enters a color with a Hex value, we need to support float values as well.
Version 1.2.0 is missing some UIKit imports, which will cause build issues when intgrating the library via swift package manager.
Currently, the only way to create a color is by using the slider controls. To do so, you have to know the color values for RGB(HSB/Grayscale in advance. That being said, it's pretty much impossible to create a color by its HEX value.
Provide a hex input field inside the preview color view.
Perhaps, we need to extend the public config to enable/disable the input field.
error: Unable to find a specification for SheetyColors
Please fill out all lines starting with a ๐ when filing a feature request to give us an idea of what exactly went wrong.
๐Would be great if we can use this cool colour picker inside a Material Action Sheet by Google.
And using Material Sliders.
๐
๐https://material.io/develop/ios/components/action-sheet/
https://material.io/develop/ios/components/sliders/
๐Not that I'm aware of.
As a result of #3
Add extensions to make SheetyColors work with other alert view libs. This way devs can add iOS 13 support by choosing any custom alert view for displaying the picker.
Add extensions to wrap the SheetyColorsView inside the custom alert view controller.
Same as the existing API
In order to use SheetyColors within custom view containers (e.g. custom action sheet, SwiftUI views), we need access to the view representing the color picker.
Make SheetyColorsViewController
public.
Add support for Dark Mode (iOS 13)
Change colors based on current dark mode status.
I was trying to enter a new hex value, however the delegate function didSelectColor
doesn't get called.
The delegate function gets called once I enter a new hex value.
The delegate function didn't get called.
The SheetyColors picker is wrapped by a custom view controller.
I was trying to present the picker view controller modally (custom view container).
The view gets properly displayed without any warnings.
I got warnings about breaking layout constraints. It seems like the preview color view has a fixed height, therefore I need to provide the exact height for the color picker to work around this issue.
While regular action sheet controllers do support a message, SheetyColors doesn't. Make this one an optional field of the configuration.
Specify the message
property inside the config protocol and display the value inside the view.
Add the message
property to the protocol.
I was testing my app on iOS 13 beta 4
I expected it work as it does on iOS 12
The color section and sliders were all gray
When end dragging RGB sliders on a real device, the targeted color value sometimes changed. Lifting off the finger seems to change the slider position.
This could be solved by either doing some fancy zoom animation (depending on dragging speed) or by making right assumptions about the targeted color value.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.