(EventKit) Problems with Adding Reminder Calendar Error, SwiftU

Hi! I getting a lot of errors in Adding Reminder and I don't know why at all.

What happened to the database connection? Where did I go wrong.

Any feedback would be appreciated. Thanks

debug: error adding Error Domain=EKErrorDomain Code=2 "No start date has been set." UserInfo={NSLocalizedDescription=No start date has been set.}

2023-01-20 15:41:00.212842+0700 snp65-project[50253:1714614] [xpc] XPC connection was invalidated

Here is the code:

(EventKit) Problems with Adding Reminder Calendar Error, SwiftU
 
 
Q