
Numbers only TextField with SwiftUI
Requiring an input to be numbers only is quite a common task. In this tutorial I will show you how to allow numbers only in a TextField using SwiftUI. Step 1: Change the
A collection of 76 posts
Requiring an input to be numbers only is quite a common task. In this tutorial I will show you how to allow numbers only in a TextField using SwiftUI. Step 1: Change the
In this tutorial you will learn how to add a delay to your code. To add a delay to your code we need to use GCD. GCD has a built in method called
It is a common task to convert a Dictionary to JSON. In this tutorial I will show you how you can do just that, luckily for us, Swift makes this incredibly easy. A
In this tutorial you will learn how to replace characters in a String using Swift. We will be using the following methods replacingOccurrences, replacingCharacters as well as replaceSubrange. Replace characters with replacingOccurrences methodThe
In this tutorial I will show you how to make a view fill the width or height of the parent view or fill the screen. It is often required that a view fill
Sometimes I find that I need to get both the index and the value when I am looping through an array. In this tutorial I will show you how to get both. I