-
Notifications
You must be signed in to change notification settings - Fork 18
Swift 4 #21
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
Swift 4 #21
Conversation
* Use NSAttributedStringKey in string attributes * Use String slicing subscript with the PartialRangeUpTo operator
Source/TokenField/ICToken.swift
Outdated
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) |
There was a problem hiding this comment.
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)
Source/TokenField/ICToken.swift
Outdated
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), |
There was a problem hiding this comment.
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)
Example/CustomizedTokenField.swift
Outdated
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), |
There was a problem hiding this comment.
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)
Merge branch 'feature/swift-4' into develop
There was a problem hiding this 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.
Merged, thanks! |
NSAttributedStringKey
in string attributessubstring(to:)
with String slicing subscript using thePartialRangeUpTo
operatorSwift 3 @objc Inference
to Default