swift

swift

Learn to iterate through the key-value pairs of a swift dictionary

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.

Read
swift

String Prefix methods in Swift explanation with example

String prefix methods in swift. Learn how to use string prefix swift method with example.

Read
swift

Swift program to check if two strings are equal or not

This 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.

Read
swift

Swift String interpolation in 5 minutes

Swift string interpolation tutorial with example. Interpolation is the process to insert variables, constants, expressions, and literals into a string.

Read
swift

Swift program to find the first index of a character in a string

This 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.

Read
swift

How to trim whitespaces and other characters from a string in swift

Learn 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.

Read
swift

Swift program to convert an array of string to a string

Learn how to convert an array of strings to a string in swift. We will use different approaches for this conversion.

Read
swift

Swift optional explanation with example

What is swift optional. Optional is an important concept in swift. Learn optional with examples in this blog post.

Read
swift

How to find the length of a string in swift

Learn 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.

Read
swift

Swift string characters in unicode, UTF-16 and UTF-8 representation

Swift program to convert string in unicode, UTF-16 and UTF-8.Learn how to use unicodeScalars, utf16 and utf8 properties of swift string.

Read