dimanche 31 mars 2019

i want to show the avalible times as bold and unavaliable times(strike) in label with corresponding to api data

for api data for day(different timings for all days & sunday closed) and date, get the entering time and leaving time, from that change the label as bold in avialiable time and strike on unaavaliable times.

before entering time all times are unavaliable and after leaving all times are unavaliable and also lunch time unavaliable

how to write the condition from api data to the label change(to bold/ strike)

API Data:

 Optional(<__NSSingleObjectArrayI 0x600003873050>(
 {
  day = Saturday;
  dArray = "<null>";
  enteringTime = "09.00 am";
  entryTime = "<null>";
  exitTime = "<null>";
  id = 13;
  leavingTime = "05.00 pm";
  lunchtimeFrom = "13:00";
  lunchtimeTo = "14:00";
 }

Aucun commentaire:

Enregistrer un commentaire