Posts from Swift

Get the last n elements of an array in Swift

By Khushi Aswani

This tutorial is all about finding the last elements of an array in Swift. This simply means working on the array to fetch the last few elements which is sometimes a crucial task w.... Read More

Intersection of two arrays in Swift

By Khushi Aswani

This tutorial is about finding the common elements in given two arrays in Swift. This can also be called an intersection of two arrays in Swift. For example, our task is to find th.... Read More

Concatenate array of strings into a single array in Swift

By Khushi Aswani

This tutorial is based on the topic to concatenate arrays of strings into a single array. We can do this task very easily by joining the two given arrays of strings. This is gonna .... Read More

Convert array to comma separated string in Swift

By Khushi Aswani

This tutorial is based on the task to convert a given array into a comma separate string in Swift. For this, we need an array of a few elements which need to be converted into comm.... Read More

How to print in debug console on Xcode – Swift

By Saruque Ahamed Mollick

There is no special technique to print something in the debug console of Xcode while dealing with SwiftUI or StoryBoard. You can simply use the print statement. print("Hey print th.... Read More

Replace an array element with another element in Swift

By Khushi Aswani

In this tutorial, we will learn how to replace an array element with another. For this we need to: Find the index of the element you want to replace. Replace the element at this in.... Read More

Concatenate Integer with String in Swift

By Saruque Ahamed Mollick

In this tutorial, we will learn how to concatenate integer with string in Swift with some easy examples. It’s easy to concatenate two strings in Swift as we all know + is eno.... Read More

Get the difference between two dates in Swift

By Khushi Aswani

You might have understood the topic for today’s tutorial, “Getting the difference between two specific dates in Swift”. As a programmer, you might need to do this.... Read More

Related Posts