SSCalendarControl icon indicating copy to clipboard operation
SSCalendarControl copied to clipboard

Fix: Wrong day of the week for a date

Open akash-more-simform opened this issue 1 year ago โ€ข 0 comments

Goals โšฝ

  • Fix the wrong day of the week for a day when using .sunday as a weekStartDay

Configuration and Steps to Reproduce ๐Ÿž๐Ÿ”„

Reproduced using:- Xcode: 15.2 Simulator: iPhone 15 iOS: 17.2

Steps:-

  1. Change the weekStartDay to .sunday in MainViewController.Swift
  2. Scroll down to second month from current month. E.g. if current month visible is January, scroll down till March
  3. The date will be visible under the wrong day of the week

Implementation Details ๐Ÿšง

  • This PR fixes the wrong day of the week using the method injection of weekStartDay in the cellโ€™s configuration

Testing Details ๐Ÿ”

  • No testing is needed as the change is in the comment.

akash-more-simform avatar Mar 27 '24 13:03 akash-more-simform