From 64e422511f1620aaa4744acd1c345e7d6e2f5a29 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Tue, 4 Aug 2020 13:23:18 -0700 Subject: [PATCH] Update README.md --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e0107fe..02b4996 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ public protocol YearlyCalendarDelegate { This is just a convenience to handle the shortcomings of the `@Published` wrapper which doesn't support `didSet`. Conform to this if you need to do things when a month is displayed or date changes. -#### `theme`: The theme of various components of the calendar. Default is royal blue. Available for `ElegantCalendarView` & `YearlyCalendarView` & `MonthlyCalendarView` +#### `theme`: The theme of various components of the calendar. Default is royal blue. Available for `ElegantCalendarView` & `YearlyCalendarView` & `MonthlyCalendarView`. ```swift @@ -218,6 +218,15 @@ ElegantCalendarView(...) To configure your own theme, just pass in your color into the `CalendarTheme` initializer. To have dynamic appearance, make sure your `Color` has both a light and dark appearance. +#### `horizontal` or `vertical`: The orientation of the calendar. The default is `horizontal`, as shown in the GIF. Available for `ElegantCalendarView` & `YearlyCalendarView` & `MonthlyCalendarView`. + +```swift + +ElegantCalendarView(...) + .vertical() + +``` + #### `allowsHaptics`: Whether haptics is enabled or not. Default is enabled. Available for `ElegantCalendarView` & `MonthlyCalendarView` ```swift