Comments (3)
@yomagicdev I had the same problem too, seems like it's because of Locale for your phone. Some countries starts with Monday as the first day of the week while some country start with Sunday as the first day of the week. Make sure the dayOfWeekInitials takes in account the locale of the phone, hope this helps!
from elegantcalendar.
@yomagicdev try to change the calendar configuration ->
Calendar.current -> Calendar.init (identifier: .gregorian),
This way it works for me correctly.
example:
let configuration = CalendarConfiguration (calendar: Calendar.init (identifier: .gregorian)...
I found that each location has a different (Calendar.current.firstWeekday), this is the cause of the error.
from elegantcalendar.
Great discussion here guys. Was in a rush when I initially created this library so wasn't able to fully test with calendars of different countries.
from elegantcalendar.
Related Issues (20)
- Could i intall this package by CocoaPods ? HOT 1
- Resolving ElegantPages fails HOT 1
- How to create a vertical scrolling Calendar View from ElegantCalendar? HOT 1
- Error: `ElegantCalendar.xcassets` doesn't exist. Refer to the `README.md` installation on how to resolve this. HOT 5
- Visits load on click event HOT 1
- EventKit event and EKRecurrence rule HOT 1
- [Feature Request] Support macOS HOT 1
- Problem with Date 4th HOT 3
- iOS 15 Warnings in Xcode 13 when using ElegantCalendar HOT 4
- Segue from calendar date to another page HOT 2
- Swift Playground support
- will this repo continue to be maintained? HOT 1
- Navigation issue HOT 7
- Make the views resizable
- Crashes in setProperPage() HOT 1
- ForEach<Array<String>, String, ModifiedContent<ModifiedContent<Text, _FrameLayout>, _EnvironmentKeyWritingModifier<Optional<Color>>>>: the ID T occurs multiple times within the collection, this will give undefined results!
- Publishing changes from within view updates is not allowed, this will cause undefined behavior. HOT 1
- ColorTheme not applied.
- On screen rotation not updating views HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elegantcalendar.