Skip to content

Commit 782c418

Browse files
authored
add hideMarkers
1 parent 1736f2f commit 782c418

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,26 @@ backgroundColor: Color(uiColor: UIColor(red: 0.22, green: 0.25, blue: 0.25, alph
8585
```
8686
The default theme has a white background with a blue accent color.
8787

88+
### hideMarkers
89+
90+
The `hideMarkers()` modifier allows you to use the `FXDatePickerView` as a regular calendar without displaying any special date markers. This is particularly useful if you want a cleaner look or if the special date indicators are not needed for certain use cases.
91+
92+
Example
93+
To apply this modifier, simply chain `.hideMarkers()` to your `FXDatePickerView` instance. Here’s how you can do it:
94+
95+
```swift
96+
FXDatePickerView(selectedDate: $selectedDate, specialDates: specialDates)
97+
.hideMarkers()
98+
```
99+
100+
Here's how it looks with the hideMarkers() modifier applied:
101+
102+
103+
<img src="https://github.com/X901/FXDatePicker/assets/16876982/49d39bf9-9379-487b-8b2e-a0447d4bb48a" height="350">
104+
105+
106+
With this modifier, the FXDatePickerView will render without showing any markers associated with the specialDates. This keeps the calendar view simple and focused on basic date picking functionality.
107+
88108
## Installation
89109

90110
### [Swift Package Manager](https://swift.org/package-manager/)

0 commit comments

Comments
 (0)