Skip to content

Commit d492782

Browse files
authored
Update Adding Images to Dates section
1 parent b001053 commit d492782

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The `specialDates` array allows you to add custom markers to specific dates in y
3333

3434
### Adding SF Symbols to Dates
3535

36-
To mark a date with an SF Symbol, create a `SpecialDate` instance with `dateType` set to `.sfSymbols`. Provide the date, the symbol's name, and its color:
36+
To mark a date with an SF Symbol, create a `SpecialDate` instance with `dateString` and `dateType` set to `.sfSymbols`. Provide the date, the symbol's name, and its color:
3737

3838
```swift
3939
SpecialDate(dateString: "2/1/2024",
@@ -45,7 +45,7 @@ color: .blue)))
4545
In the above example, an airplane departure symbol in blue color will appear on 2nd January 2024.
4646

4747
### Adding Images to Dates
48-
To use a custom image for marking a specific date, set dateType to .image and provide the date and image name:
48+
To mark a date with an SF Symbol, create a `SpecialDate` instance with `dateString` and `dateType` set to `.sfSymbols`. Specify the date, the SF Symbol's name, and its color:
4949

5050

5151
```swift
@@ -57,7 +57,8 @@ To use a custom image for marking a specific date, set dateType to .image and pr
5757

5858
### calenderType
5959

60-
Change the DatePicker type using calendarType. For example, to use the Hijri calendar:
60+
For a custom image, set dateType to .image and provide the date along with the name of the image:
61+
6162

6263
```swift
6364
FXDatePickerView(selectedDate: $selectedDate, specialDates: specialDates)

0 commit comments

Comments
 (0)