Skip to content

Commit b001053

Browse files
authored
change Adding Images to Dates
1 parent 493f8ea commit b001053

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ The `specialDates` array allows you to add custom markers to specific dates in y
3636
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:
3737

3838
```swift
39-
let specialDates: [SpecialDate] = [
40-
SpecialDate(dateType: .sfSymbols(SFSymbolsType(dateString: "2/1/2024",
41-
imageName: "airplane.departure",
42-
color: .blue)))
39+
SpecialDate(dateString: "2/1/2024",
40+
dateType: .sfSymbols(SFSymbolsType(imageName: "airplane.departure",
41+
color: .blue)))
4342
]
4443
```
4544

@@ -50,7 +49,8 @@ To use a custom image for marking a specific date, set dateType to .image and pr
5049

5150

5251
```swift
53-
SpecialDate(dateType: .image(ImageType(dateString: "13/1/2024", imageName: "home"))
52+
SpecialDate(dateString: "13/1/2024",
53+
dateType: .image(ImageType(imageName: "home")))
5454
```
5555

5656
# Customize | Available modifiers:

0 commit comments

Comments
 (0)