This tutorial will see how to delete the last element from an array in Swift. Algorithm to remove last element from an array in Swift Check whether the array has any elements or no.... Read More
In this tutorial, I will show you how easily we can count the number of occurrences of a character in a string in Swift. We can easily count the number of strings using .count. let.... Read More
This tutorial will see how to remove the leading whitespaces from a string in Swift. The spaces at the beginning of the string only should be removed others should be kept the same.... Read More
In this tutorial, we will learn how to convert any integer to a string and string to an integer using various approaches in Swift. Convert Int to string in Swit To work on this we .... Read More
In this tutorial, we will work on the task of getting the nth character from a given string as the title says it all, to retrieve a particular character present at a specific posit.... Read More
In this tutorial, we will delete all the elements of a given array in Swift. For this, we will use removeAll() function in Swift. removeAll() This function deletes all the elements.... Read More
This tutorial will see how to validate an email address in Swift. This is possible by taking an email address as a string and checking it with the regular expression of valid email.... Read More
In this tutorial, we will see what an exclamation mark means in Swift. And we will also see the purpose of using exclamation mark with an example. In the Swift programming language.... Read More