diff --git a/Podfile.lock b/Podfile.lock
index a5c3009f..00d4598a 100644
--- a/Podfile.lock
+++ b/Podfile.lock
@@ -53,7 +53,7 @@ DEPENDENCIES:
EXTERNAL SOURCES:
MZFayeClient:
- :path: ../CatchLib-iOS/MZFayeClient/
+ :path: "../CatchLib-iOS/MZFayeClient/"
SPEC CHECKSUMS:
1PasswordExtension: 9f471645d378283cb88c6d4bf502e4381a42c0ad
diff --git a/Yep/Extensions/UIColor+Yep.swift b/Yep/Extensions/UIColor+Yep.swift
index e61b9444..b6c2f86f 100644
--- a/Yep/Extensions/UIColor+Yep.swift
+++ b/Yep/Extensions/UIColor+Yep.swift
@@ -101,13 +101,21 @@ extension UIColor {
class func yepCellAccessoryImageViewTintColor() -> UIColor {
return UIColor.lightGrayColor()
}
+
+
+ class func isLightColor(color: UIColor) -> Bool{
+
+ var white: CGFloat = 0.0
+ color.getWhite(&white, alpha: nil)
+ if white >= 0.9 { return true }
+ else { return false }
+ }
var yep_inverseColor: UIColor {
- var red: CGFloat = 0
- var green: CGFloat = 0
- var blue: CGFloat = 0
- var alpha: CGFloat = 0
- getRed(&red, green: &green, blue: &blue, alpha: &alpha)
- return UIColor(red: 1 - red, green: 1 - green, blue: 1 - blue, alpha: alpha)
+ if UIColor.isLightColor(self) {
+ return UIColor.blackColor()
+ } else {
+ return UIColor.whiteColor()
+ }
}
}
diff --git a/Yep/Info.plist b/Yep/Info.plist
index 7b25c828..1a4e94cc 100644
--- a/Yep/Info.plist
+++ b/Yep/Info.plist
@@ -40,7 +40,7 @@
CFBundleVersion
- 178
+ 181
Fabric
APIKey