• How To Use List Of Objects With User Defaults iOS & Swift 4

    How To Use List Of Objects With User Defaults iOS & Swift 4

    Ever wanted to store a list of objects into user defaults for reference later? Lets check out the below code to do just that. // to retrieve arrays from user defaults UserDefaults.standard.array(forKey: “yourArrayKey”) // to store arrays of objects into user defaults UserDefaults.standard.set(arrayToStore, forKey: “yourArrayKey”) // to delete the object from your user defaults UserDefaults.standard.removeObject(forKey:
    Read More…

  • How To Display An Alert In iOS & Swift 5

    How To Display An Alert In iOS & Swift 5

    In iOS, there will be times where you will want to give the user some feedback depending on the situation. It could be because of a success or a failure whether it be during object creation or authentication. Below is a code snippet to create an AlertViewController and then present it. We can add actions
    Read More…