Skip to content

Commit 7fc1cbd

Browse files
committed
README, notes.
1 parent beec9fe commit 7fc1cbd

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

Notes/WrapperTextStyle.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# WrapperTextStyle(s)
2+
3+
Styles wrapping other styles to modify their behavior.
4+
5+
## Constant
6+
7+
Makes it so transformation methods return an unmodified self.
8+
9+
```swift
10+
style.constant()
11+
```
12+
13+
## Equals
14+
15+
Binds a style's comparison to a proxy value.
16+
17+
```swift
18+
style.equals(())
19+
style.equals(value)
20+
```

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ struct DiffableTextFieldXPhone: View {
173173
}
174174
```
175175

176-
## WrapperTextStyle(s) ([Source](Sources/DiffableTextStylesXWrapper/), [Tests](Tests/DiffableTextStylesXWrapperTests))
176+
## [WrapperTextStyle(s)](Notes/WrapperTextStyle.md) ([Source](Sources/DiffableTextStylesXWrapper/), [Tests](Tests/DiffableTextStylesXWrapperTests))
177177

178178
Styles wrapping other styles to modify their behavior.
179179

@@ -185,8 +185,6 @@ Makes it so transformation methods return an unmodified self.
185185
style.constant()
186186
```
187187

188-
The wrapped style's locale may no longer be overridden by the environment, for example.
189-
190188
## Equals
191189

192190
Binds a style's comparison to a proxy value.
@@ -195,5 +193,3 @@ Binds a style's comparison to a proxy value.
195193
style.equals(())
196194
style.equals(value)
197195
```
198-
199-
Style proposals are discarded unless they are unequal. Use it to optimize the comparison on view update.

0 commit comments

Comments
 (0)