@@ -27,7 +27,7 @@ public extension ColorType
2727 */
2828 public func foregroundAttribute( string: AttributedStringConvertible ) -> AttributedStringConvertible
2929 {
30- return Attributed . attribute ( NSForegroundColorAttributeName, self , string)
30+ return Attributed . attribute ( NSForegroundColorAttributeName, withValue : self ) ( string)
3131 }
3232
3333 // MARK: - Background Color
@@ -41,7 +41,7 @@ public extension ColorType
4141 */
4242 public func backgroundAttribute( string: AttributedStringConvertible ) -> AttributedStringConvertible
4343 {
44- return Attributed . attribute ( NSBackgroundColorAttributeName, self , string)
44+ return Attributed . attribute ( NSBackgroundColorAttributeName, withValue : self ) ( string)
4545 }
4646
4747 // MARK: - Underline Color
@@ -55,7 +55,7 @@ public extension ColorType
5555 */
5656 public func underlineAttribute( string: AttributedStringConvertible ) -> AttributedStringConvertible
5757 {
58- return Attributed . attribute ( NSUnderlineColorAttributeName, self , string)
58+ return Attributed . attribute ( NSUnderlineColorAttributeName, withValue : self ) ( string)
5959 }
6060
6161 // MARK: - Strikethrough Color
@@ -69,6 +69,6 @@ public extension ColorType
6969 */
7070 public func strikethroughAttribute( string: AttributedStringConvertible ) -> AttributedStringConvertible
7171 {
72- return Attributed . attribute ( NSStrikethroughColorAttributeName, self , string)
72+ return Attributed . attribute ( NSStrikethroughColorAttributeName, withValue : self ) ( string)
7373 }
7474}
0 commit comments