Skip to content

Commit

Permalink
Fixed for OSX - updated pod spec again
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyguitar committed Mar 27, 2014
1 parent 1e6f549 commit bc57bb3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
27 changes: 12 additions & 15 deletions Colours.m
Original file line number Diff line number Diff line change
Expand Up @@ -1267,13 +1267,12 @@ - (BOOL)colours_getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blu
else if (CGColorGetNumberOfComponents(self.CGColor) == 2) {
CGFloat white;
CGFloat m_alpha;
if ([self getWhite:&white alpha:&m_alpha]) {
*red = white * 1.0;
*green = white * 1.0;
*blue = white * 1.0;
*alpha = m_alpha;
return YES;
}
[self getWhite:&white alpha:&m_alpha];
*red = white * 1.0;
*green = white * 1.0;
*blue = white * 1.0;
*alpha = m_alpha;
return YES;
}

return NO;
Expand All @@ -1288,14 +1287,12 @@ - (BOOL)colours_getHue:(CGFloat *)hue saturation:(CGFloat *)saturation brightnes
else if (CGColorGetNumberOfComponents(self.CGColor) == 2) {
CGFloat white = 0;
CGFloat a = 0;
if ([self getWhite:&white alpha:&a]) {
*hue = 0;
*saturation = 0;
*brightness = white * 1.0;
*alpha = a * 1.0;

return YES;
}
[self getWhite:&white alpha:&a];
*hue = 0;
*saturation = 0;
*brightness = white * 1.0;
*alpha = a * 1.0;
return YES;
}

return NO;
Expand Down
4 changes: 2 additions & 2 deletions Colours.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = 'Colours'
s.version = '5.2.0'
s.version = '5.2.1'
s.summary = '100s of beautiful, predefined Colors and Color methods. Works for iOS/OSX.'
s.author = {
'Ben Gordon' => '[email protected]'
}
s.source = {
:git => 'https://github.com/bennyguitar/Colours.git',
:tag => '5.2.0'
:tag => '5.2.1'
}
s.homepage = 'https://github.com/bennyguitar'
s.license = 'LICENSE'
Expand Down

0 comments on commit bc57bb3

Please sign in to comment.