I want to use This library in swift. It's written in Obj-C.
I've added header and Bridging and etc, now, I don't know what is equivalent of this statement :
//Color did change block declaration
NKOColorPickerDidChangeColorBlock colorDidChangeBlock = ^(UIColor *color){
//Your code handling a color change in the picker view.
};
NKOColorPickerView *colorPickerView = [[NKOColorPickerView alloc] initWithFrame:CGRectMake(0, 0, 300, 340) color:[UIColor blueColor] andDidChangeColorBlock:colorDidChangeBlock];
//Add color picker to your view
[self.view addSubview:colorPickerView];