You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letlastEnxTimestamp= defaults.double(forKey:"lastEnxTimestamp") // defaults to 0 if it does not exist https://developer.apple.com/documentation/foundation/userdefaults/1416581-double
198
+
varenxCount= defaults.double(forKey:"enxCount") // defaults to 0 if it does not exist https://developer.apple.com/documentation/foundation/userdefaults/1416581-double
199
+
letnewDate=Date.init();
200
200
201
-
if(lastEnxTimestamp ==0){
202
-
sameDay =false;
201
+
varsameDay=false; // default to false in case lastEnxTimestamp has not been created yet
0 commit comments