Comments (4)
Acknowledged. Taking a look
from jtapplecalendar.
2 things.
- The calendar calls the boundary delegates to find out its date boundary. You are supplying
NSDate()
to the boundary. Every timeNSDate()
is called, you are supplying a different date.
Ex.
1st call = 2016-03-01 01:06:03 +0000
2nd call = 2016-03-01 01:07:03 +0000
Difference by a ~ second. Since you are changing the boundary, the calendar thinks you want the boundaries updated and the whole layout reloaded. Now while this is logical that the calendar thinks this, it's sort of dumb.
I will make the following fix -> The calendar will only assume that the developer wants to change the date when the difference in the date is greater than 1 day-unit.
- That being said, the calendar should not have crashed. It crashed because after it assumed number 1 above, it deleted its internal date-data in preparation to generate the new one given by your
NSDate()
function. But it should have done this on the main thread instead of a background one.
The two fixes are done. Testing now. Expect a new code push in a few hrs. In the mean time continue to use the work around. After the fix you should be able to use it like you wanted to.
from jtapplecalendar.
Updated to 2.1.1
Can you let me know if you are still having the issue?
from jtapplecalendar.
Yes, 2.1.1 fixes the issue.
from jtapplecalendar.
Related Issues (20)
- Spacing between dates HOT 1
- Xcode15: Stored properties cannot be marked unavailable with '@available' HOT 3
- JTACMonthView.reloadData completion handler is not always invoked HOT 6
- Application got crashed :
- Application got crashed at JTACMonthLayout
- Application got crashed at JTACMonthLayout due to nil value HOT 11
- Calendar crashing on iOS 17 HOT 4
- Crashlytics Reports 100% Crash Rate in iOS 17 HOT 8
- Stored properties cannot be marked unavailable with '@available' error on Xcode 15 HOT 4
- Error - Stored properties cannot be marked unavailable with '@available' HOT 3
- Xcode 15 Error "Stored properties cannot be marked unavailable with '@available" HOT 4
- xCode 15 compatibility issue
- Only iOS 17 Crash - JTACMonthLayout - setupDataFromDelegate HOT 11
- I use Xcode Version 14.3.1 (14E300c). But the bug? issue has 'No such module 'JTAppleCalendar' HOT 3
- Additional line of days in previous month if use cellState.dateBelongsTo for cells hide or style HOT 5
- Stored properties cannot be marked unavailable with '@available' HOT 10
- View dependend protocols should be marked with @MainActor HOT 2
- reload data doesn't work HOT 2
- Any support/plan of Privacy Manifest? HOT 2
- Month view display incorrectly when endDate <= Oct 1582 HOT 6
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 jtapplecalendar.