Commit 18df307 1 parent 4780488 commit 18df307 Copy full SHA for 18df307
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Initializing attributed strings in `SwiftyAttributes` can be done several ways:
68
68
69
69
- Using the `Attribute` enum in an initializer:
70
70
````swift
71
- NSAttributedString(string: "Hello World ", attributes : [.kern (5), .backgroundColor (.gray )])
71
+ NSAttributedString(string: "Hello World ", swiftyAttributes : [.kern (5), .backgroundColor (.gray )])
72
72
````
73
73
74
74
You can retrieve the attribute at a specific location using an attribute name from the `Attribute.Name` enum:
@@ -91,7 +91,7 @@ extension NSMutableAttributedString {
91
91
}
92
92
93
93
extension NSAttributedString {
94
- convenience init (string str : String , attributes : [Attribute])
94
+ convenience init (string str : String , swiftyAttributes : [Attribute])
95
95
func withAttributes (_ attributes : [Attribute]) -> NSMutableAttributedString
96
96
func withAttribute (_ attribute : Attribute) -> NSMutableAttributedString
97
97
func attributedSubstring (from range : Range <Int >) -> NSAttributedString
You can’t perform that action at this time.
0 commit comments