Skip to content

Circle thumb's position is wrong. #20

@JeromeTW

Description

@JeromeTW

At first, thank you for the nice color tool.

It's easy to reproduce the problem.
I downloaded your example, and changed getSelectedColor(_ sender: UIButton) function as following.

@IBAction func getSelectedColor(_ sender: UIButton) {
        // Get the selected color from the Color Picker.
        let selectedColor = colorPicker.color
        colorPicker.setViewColor(selectedColor!)
        print(selectedColor!)
}

then, run example app on device.
1.move circle thumb to the top of the Big color circle.
2.pressed "select color", you will see the circle thumb position is moved down a little bit.
3.but if you select color is white at the Big color circle's center, will not see the phenomenon.

I guess it's about the color's format(RGB, HSV)

Xcode 8, Swift 3, iPad Mini, iOS 9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions