Skip to content

Commit

Permalink
fix osx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psharanda committed Sep 17, 2018
1 parent 1108f29 commit d7ec6c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Atributika.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,11 @@
};
52D6DA0E1BF000BD002C0205 = {
CreatedOnToolsVersion = 7.1;
LastSwiftMigration = 0820;
LastSwiftMigration = 1000;
};
DD7502791C68FCFC006590AF = {
CreatedOnToolsVersion = 7.2.1;
LastSwiftMigration = 0800;
LastSwiftMigration = 1000;
};
DD75028C1C690C7A006590AF = {
CreatedOnToolsVersion = 7.2.1;
Expand Down
6 changes: 3 additions & 3 deletions Tests/AtributikaTests/AtributikaTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -497,21 +497,21 @@ class AtributikaTests: XCTestCase {

func testTuner() {

func hexStringToUIColor (hex:String) -> UIColor {
func hexStringToUIColor (hex:String) -> Color {
var cString:String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased()

if (cString.hasPrefix("#")) {
cString.remove(at: cString.startIndex)
}

if ((cString.count) != 6) {
return UIColor.gray
return Color.gray
}

var rgbValue:UInt32 = 0
Scanner(string: cString).scanHexInt32(&rgbValue)

return UIColor(
return Color(
red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0,
green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0,
blue: CGFloat(rgbValue & 0x0000FF) / 255.0,
Expand Down

0 comments on commit d7ec6c0

Please sign in to comment.