@@ -48,7 +48,7 @@ public extension AttributedString {
4848 /// - range: range of substring where style is applied, `nil` to use the entire string.
4949 /// - Returns: same instance of the receiver with - eventually - modified attributes.
5050 @discardableResult
51- public func add( style: String , range: NSRange ? = nil ) -> AttributedString {
51+ func add( style: String , range: NSRange ? = nil ) -> AttributedString {
5252 guard let style = Styles [ style] else { return self }
5353 return style. add ( to: self , range: range)
5454 }
@@ -61,7 +61,7 @@ public extension AttributedString {
6161 /// - range: range of substring where style is applied, `nil` to use the entire string.
6262 /// - Returns: same instance of the receiver with - eventually - modified attributes.
6363 @discardableResult
64- public func add( styles: [ String ] , range: NSRange ? = nil ) -> AttributedString {
64+ func add( styles: [ String ] , range: NSRange ? = nil ) -> AttributedString {
6565 guard let styles = Styles [ styles] else { return self }
6666 return styles. mergeStyle ( ) . set ( to: self , range: range)
6767 }
@@ -74,7 +74,7 @@ public extension AttributedString {
7474 /// - range: range of substring where style is applied, `nil` to use the entire string.
7575 /// - Returns: same instance of the receiver with - eventually - modified attributes.
7676 @discardableResult
77- public func set( style: String , range: NSRange ? = nil ) -> AttributedString {
77+ func set( style: String , range: NSRange ? = nil ) -> AttributedString {
7878 guard let style = Styles [ style] else { return self }
7979 return style. set ( to: self , range: range)
8080 }
@@ -88,7 +88,7 @@ public extension AttributedString {
8888 /// - range: range of substring where style is applied, `nil` to use the entire string.
8989 /// - Returns: same instance of the receiver with - eventually - modified attributes.
9090 @discardableResult
91- public func set( styles: [ String ] , range: NSRange ? = nil ) -> AttributedString {
91+ func set( styles: [ String ] , range: NSRange ? = nil ) -> AttributedString {
9292 guard let styles = Styles [ styles] else { return self }
9393 return styles. mergeStyle ( ) . set ( to: self , range: range)
9494 }
@@ -100,7 +100,7 @@ public extension AttributedString {
100100 /// - range: range of substring where style is applied, `nil` to use the entire string.
101101 /// - Returns: same instance of the receiver with - eventually - modified attributes.
102102 @discardableResult
103- public func add( style: StyleProtocol , range: NSRange ? = nil ) -> AttributedString {
103+ func add( style: StyleProtocol , range: NSRange ? = nil ) -> AttributedString {
104104 return style. add ( to: self , range: range)
105105 }
106106
@@ -112,7 +112,7 @@ public extension AttributedString {
112112 /// - range: range of substring where style is applied, `nil` to use the entire string.
113113 /// - Returns: same instance of the receiver with - eventually - modified attributes.
114114 @discardableResult
115- public func add( styles: [ StyleProtocol ] , range: NSRange ? = nil ) -> AttributedString {
115+ func add( styles: [ StyleProtocol ] , range: NSRange ? = nil ) -> AttributedString {
116116 return styles. mergeStyle ( ) . add ( to: self , range: range)
117117 }
118118
@@ -123,7 +123,7 @@ public extension AttributedString {
123123 /// - range: range of substring where style is applied, `nil` to use the entire string.
124124 /// - Returns: same instance of the receiver with - eventually - modified attributes.
125125 @discardableResult
126- public func set( style: StyleProtocol , range: NSRange ? = nil ) -> AttributedString {
126+ func set( style: StyleProtocol , range: NSRange ? = nil ) -> AttributedString {
127127 return style. set ( to: self , range: range)
128128 }
129129
@@ -135,7 +135,7 @@ public extension AttributedString {
135135 /// - range: range of substring where style is applied, `nil` to use the entire string.
136136 /// - Returns: same instance of the receiver with - eventually - modified attributes.
137137 @discardableResult
138- public func set( styles: [ StyleProtocol ] , range: NSRange ? = nil ) -> AttributedString {
138+ func set( styles: [ StyleProtocol ] , range: NSRange ? = nil ) -> AttributedString {
139139 return styles. mergeStyle ( ) . set ( to: self , range: range)
140140 }
141141
@@ -146,7 +146,7 @@ public extension AttributedString {
146146 /// - range: range of substring where style will be removed, `nil` to use the entire string.
147147 /// - Returns: same instance of the receiver with - eventually - modified attributes.
148148 @discardableResult
149- public func removeAttributes( _ keys: [ NSAttributedString . Key ] , range: NSRange ) -> Self {
149+ func removeAttributes( _ keys: [ NSAttributedString . Key ] , range: NSRange ) -> Self {
150150 keys. forEach { self . removeAttribute ( $0, range: range) }
151151 return self
152152 }
@@ -155,7 +155,7 @@ public extension AttributedString {
155155 ///
156156 /// - Parameter style: style to use.
157157 /// - Returns: same instance of the receiver with - eventually - modified attributes.
158- public func remove( _ style: StyleProtocol ) -> Self {
158+ func remove( _ style: StyleProtocol ) -> Self {
159159 self . removeAttributes ( Array ( style. attributes. keys) , range: NSMakeRange ( 0 , self . length) )
160160 return self
161161 }
0 commit comments