Giter Club home page Giter Club logo

pdcolorpicker's People

Contributors

arielpollack avatar benny-jon avatar pdil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pdcolorpicker's Issues

Add alpha slider

There should be an alpha slider in addition to the hue slider to allow user to change transparency of color.

To-Do

  • Create generic "slider" class
    • Name: PDColorPickerSliderView
    • Allow initializer to define what color component the slider represents
    • Define background color or view to display when the transparency is less than 1.0
  • Create generic slider delegate protocol
    • Transmits whatever the changeable value is to the protocol implementer when changed
    • For example:
      protocol PDColorPickerSliderViewDelegate: class {
        func valueChanged(in slider: PDColorPickerSliderView, to newValue: CGFloat)
      }
      
  • Replace PDColorPickerViewController layout code with vertical UIStackView (brightness/saturation slider, hue slider, alpha slider) for easier management
  • Provide property in PDColorPickerViewController to display or hide alpha slider
    • If hidden, default of 1.0 is used
    • Possibly provide ability to set a different default alpha while still hiding the alpha slider?

Allow ability to toggle drag and drop

Add property (allowsDragAndDrop) to PDColorPickerViewController that either enables or disables the ability to drag the color preview on iPad running iOS 11.0+.

Example:

public var allowsDragAndDrop: Bool {
  didSet {
    if allowsDragAndDrop {
      // enable
    } else {
      // disable
    }
  }
}

Implement the following improvements to PDColor

  • Conform to CustomStringConvertible instead of manually creating a description string.
  • Allow retrieval of red, green, blue values (in addition to hue, saturation, brightness).
  • Better safety in init(fromString:)
    • Check for proper string format
    • Check that all components exist (perhaps allow 3 components with default alpha of 1.0)

Allow contributions by enabling publishing branches and pull requests.

Expected behavior

  • I would like to be able to publish new branches and create pull requests.

Actual behavior

  • I'm getting the current error:

Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open preferences and verify that you're signed in with an account that has permission to access this repository.

Steps to reproduce behavior

  • Try to push a brach from GitHubDesktop

Add documentation

All public facing classes, methods, and properties should have properly formatted documentation describing usage, parameters, and return values (where applicable).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.