//
//  XTColorUtils.m
//  XTads
//
//  Created by Rune Berg on 06/04/2020.
//  Copyright © 2020 Rune Berg. All rights reserved.
//

#import "XTColorUtils.h"


@implementation XTColorUtils

+ (BOOL)color:(NSColor *)color1 isEqualTo:(NSColor *)color2
{
	color1 = [color1 colorUsingColorSpace:[NSColorSpace sRGBColorSpace]];
	color2 = [color2 colorUsingColorSpace:[NSColorSpace sRGBColorSpace]];
	
	BOOL res = (color1 != nil) && (color2 != nil) && [color1 isEqualTo:color2];
	return res;
}

@end
