Skip to content

Commit beec9fe

Browse files
committed
Merge remote-tracking branch 'refs/remotes/backup/dev'
2 parents 61c16b1 + 70d7d3f commit beec9fe

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,34 +175,25 @@ struct DiffableTextFieldXPhone: View {
175175

176176
## WrapperTextStyle(s) ([Source](Sources/DiffableTextStylesXWrapper/), [Tests](Tests/DiffableTextStylesXWrapperTests))
177177

178-
Styles wrapping other styles and modifying their behavior.
178+
Styles wrapping other styles to modify their behavior.
179179

180180
## Constant
181181

182182
Makes it so transformation methods return an unmodified self.
183183

184-
### Examples
185-
186184
```swift
187185
style.constant()
188186
```
189187

190-
The style's locale may no longer be overriden by the environment.
188+
The wrapped style's locale may no longer be overridden by the environment, for example.
191189

192190
## Equals
193191

194192
Binds a style's comparison to a proxy value.
195193

196-
### Examples
197-
198194
```swift
199195
style.equals(())
200-
```
201-
202-
The first style is accepted, subsequent styles are discarded without comparison.
203-
204-
```swift
205196
style.equals(value)
206197
```
207198

208-
The first style is accepted, subsequent styles are discarded unless the their proxies are different.
199+
Style proposals are discarded unless they are unequal. Use it to optimize the comparison on view update.

0 commit comments

Comments
 (0)