This post will show you how to iterate through the key-value pairs of a swift dictionary. We will do it by using a for-in loop, using forEach and by using enumerated.
ReadString prefix methods in swift. Learn how to use string prefix swift method with example.
ReadThis post will show you how to check if two strings are equal or not in swift. We will learn ==, elementsEqual method and case insensitive comparison of two strings in swift.
ReadSwift string interpolation tutorial with example. Interpolation is the process to insert variables, constants, expressions, and literals into a string.
ReadThis program will show you how to find the first index of a specific character in a string in swift. We will learn different ways to find the first index of a character in swift string.
ReadLearn how to trim whitespaces or any other characters from a string in swift. We will learn how to trim decimal digits and whitespace from a swift string.
ReadLearn how to convert an array of strings to a string in swift. We will use different approaches for this conversion.
ReadWhat is swift optional. Optional is an important concept in swift. Learn optional with examples in this blog post.
ReadLearn how to find the length of a string in swift. This post will show you how to find the length of a string in swift with example program.
ReadSwift program to convert string in unicode, UTF-16 and UTF-8.Learn how to use unicodeScalars, utf16 and utf8 properties of swift string.
Read