v4.3.1September 22, 2020
Just use the new
horizontalmodifier on your calendar view!
- ⚡️ Updated ElegantPages to fix bug where the delegate was being called at calendar creation
- 🛠 Fixed bug where if the end date was the exact start of a given month, that month wouldn’t be shown
- Lowered the swift tools version. Now compatible with any Xcode 11 version!
- ⚡️ Updated the examples
v4.0.2July 15, 2020
🚑 Hotfix for the previous release. Manually scrolling to a particular month should work fine now.
8 new themes that look elegant in any app!
CalendarConfigurationnow doesn't manage the calendar's theme or haptics settings anymore. This makes sense because a change in the configuration should result in a complete reset of the calendar. This means that whatever month or year the user is scrolled on currently is reset as well. In this line of thought, it doesn't make sense for a full reset to occur whenever the theme or haptic settings change. These changes should only result in a few minor adjustments in appearances and logic. State is preserved and user experience remains well now whenever the theme or haptics settings are changed now.
The new syntax for this is:
ElegantCalendarView(...).theme(_yourTheme or one of the default ones)
ElegantCalendarView(...).allowsHaptics(_whether or not you want to enable haptics)
👀 See README.md customization for more info. The great thing about this is that you can now change the theme or haptics settings by passing in a binding variable, which is a great trend towards declarative code.
v3.0.1July 14, 2020
👍 Calendar scrolls are quicker now in line with the new haptics and just feels better in general. The monthly header and day view text font size has been decreased just a tad bit in proportion to the view size. The scroll back to today icon has been replaced with a custom icon that looks much cleaner.
👀 Major change: Use of custom icons instead of SF Symbol icons. See
README.mdinstructions on how to use the new icons.
If you want, you can now just use the yearly or monthly view in your app. The models for these views have been made public and refined for greater flexibility. To use these views by themselves, use the correct
Major change: The naming of a delegate function has also been changed:
func calendar(didSelectDate date: Date)->
func calendar(didSelectDay date: Date).