Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(closes PR# 248)Singleton local storage #297

Merged
merged 8 commits into from
Jun 28, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Improve UIColor extension (#157)
- Simplify the declaration of a read-only computed property by removing get keyword
- Fix incorrect import (Foundation is not enough to work with UIColor)
- Fix an incorrect data type of the parameters (the previous implementation will not work correctly if UIColor's initializer with Int type parameters appears)
- Correct the indents between operands
  • Loading branch information
magauran authored and cpg committed Apr 8, 2019
commit 7e54ecc0e908fc1d9890480312cabc4842612b62
18 changes: 5 additions & 13 deletions AmahiAnywhere/AmahiAnywhere/Extensions/UIColor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,23 @@
// Copyright © 2018 Amahi. All rights reserved.
//

import Foundation
import UIKit.UIColor

extension UIColor {

class var softYellow: UIColor {
get {
return UIColor(red:0.81, green:0.85, blue:0.26, alpha:0.7)
}
return UIColor(red: 0.81, green: 0.85, blue: 0.26, alpha: 0.7)
}

class var remoteIndicatorBrown: UIColor {
get {
return UIColor(red:152/255, green:38/255, blue:73/255, alpha:1)
}
return UIColor(red: 152 / 255.0, green: 38 / 255.0, blue: 73 / 255.0, alpha: 1)
}

class var localIndicatorBlack: UIColor {
get {
return UIColor(red:28/255, green:28/255, blue:31/255, alpha:1)
}
return UIColor(red: 28 / 255.0, green: 28 / 255.0, blue: 31 / 255.0, alpha: 1)
}

class var brokenIndicatorRed : UIColor {
get {
return UIColor(red:211/255, green:33/255, blue:45/255, alpha:1)
}
return UIColor(red: 211 / 255.0, green: 33 / 255.0, blue: 45 / 255.0, alpha: 1)
}
}