Skip to content

Commit 67f165e

Browse files
committed
Update README with new modifiers
1 parent a1bc849 commit 67f165e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Assets/Showroom_1.png

-8.08 KB
Loading

Assets/Showroom_2.png

-6.78 KB
Loading

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,22 @@ To change the foreground color of a not selected and selected pill, respectively
219219
The height and width of the pills can also be set, but width will be treated as the minimum width of the pills
220220

221221
```swift
222-
.pillWidth(20)
222+
.pillMinWidth(20)
223223
.pillHeight(10)
224224
```
225225

226226
<br>
227227

228+
This adds trailing and leading icons to the view, but only displays the trailing icons when the element has been selected.
229+
230+
```swift
231+
.pillLeadingIcon(Image(systemName: "popcorn"))
232+
.pillTrailingIcon(Image(systemName: "checkmark"))
233+
.pillTrailingOnlySelected(true) /// Only when item is selected
234+
```
235+
236+
<br>
237+
228238
Corner radius and border color can also be changed easily
229239

230240
```swift

0 commit comments

Comments
 (0)