Skip to content

Conversation

bcylin
Copy link
Collaborator

@bcylin bcylin commented Oct 30, 2017

  • Use NSAttributedStringKey in string attributes
  • Replace substring(to:) with String slicing subscript using the PartialRangeUpTo operator
  • Set Swift 3 @objc Inference to Default

* Use NSAttributedStringKey in string attributes
* Use String slicing subscript with the PartialRangeUpTo operator
NSBackgroundColorAttributeName: UIColor(red:0.14, green:0.38, blue:0.95, alpha:1)
var highlightedTextAttributes: [NSAttributedStringKey: NSObject] = [
.foregroundColor: UIColor.white,
.backgroundColor: UIColor(red:0.14, green:0.38, blue:0.95, alpha:1)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Colon Violation: Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. (colon)

NSForegroundColorAttributeName: UIColor(red:0.14, green:0.38, blue:0.95, alpha:1),
NSBackgroundColorAttributeName: UIColor.clear
var normalTextAttributes: [NSAttributedStringKey: NSObject] = [
.foregroundColor: UIColor(red:0.14, green:0.38, blue:0.95, alpha:1),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Colon Violation: Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. (colon)

NSForegroundColorAttributeName: UIColor(red:0.8, green:0.32, blue:0.24, alpha:1),
NSBackgroundColorAttributeName: UIColor.white,
NSFontAttributeName: UIFont.boldSystemFont(ofSize: 14)
.foregroundColor: UIColor(red:0.8, green:0.32, blue:0.24, alpha:1),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Colon Violation: Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. (colon)

@bcylin bcylin assigned dlackty and unassigned dlackty Dec 20, 2017
@bcylin bcylin requested a review from dlackty December 20, 2017 05:21
bcylin added a commit to bcylin/ICInputAccessory that referenced this pull request Jan 20, 2018
Merge branch 'feature/swift-4' into develop
Copy link
Member

@dlackty dlackty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the super late review. Maybe let's update gems again, and see if CI still passes.

@bcylin bcylin merged commit 8031774 into develop Jan 23, 2018
@bcylin
Copy link
Collaborator Author

bcylin commented Jan 23, 2018

Merged, thanks!

@bcylin bcylin deleted the feature/swift-4 branch January 23, 2018 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants