You should always validate data entered by user or received from backend before doing any processing on it, for example if you are expecting a string object that contains a price or quantity then this string must include only digits.
Presenting a long list of items to user may not be a good decision because you will have the user keep scrolling till he finds what he is looking for, instead you can group these items in sections for ease of navigation.Dictionary introduce a simple method for grouping objects of . . . Read more
Swift version of Enum is much more powerful
Customize every single character in your string
Working with Dates in Swift To start working with dates in iOS you must be familiar with at least these three objects: Date, DateFormatter and DateComponents. Date struct Date is a struct that belongs to the Foundation framework. It represents a specific point in time independent of any calendar or . . . Read more
Swift provides three collection types for storing collections of values Here we will try to show the differences between them so you can easily decide which one to use in every situation. Array: Array is ordered collection so you can access any element inside it using its index. Arrays can . . . Read more