Skip to content

colorWheelDidChangeColor doesn't work in swift #9

@simonrieser

Description

@simonrieser

Hello

Coud you please help how to implement the colorWheelDidChangeColor method in swift 2?
How do i set the delegate to self? That doesn't work: cw!.delegate = self

I tried it with this code:

var cw: ISColorWheel?
cw = ISColorWheel(frame:CGRectMake(size!.width / 2 - wheelSize!.width / 2, size!.height * 0.1, wheelSize!.width, wheelSize!.height))
cw!.continuous = true
self.view.addSubview(cw!)

And the action method:

func colorWheelDidChangeColor(colorWheel: ISColorWheel) {
view.backgroundColor = colorWheel.currentColor()
}

Thank you for your help.

Simon

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