Posts from Swift

Implementation of Affine Cipher in C++

By Raj Anand

Affine ciphers are monoalphabetic substitution ciphers in which every letter in the alphabet is mapped to its corresponding numeric value, encrypted using a basic mathematical func.... Read More

Get the current scroll position of a SwiftUI ScrollView

By Samim

In this tutorial, we will see how to get the current scroll position of a SwiftUI ScrollView. We can use the ScrollView to create a scroll view and the onChange modifier within the.... Read More

How to scale a view up or down in SwiftUI

By shagrafnasheet

If we want to scale any view in SwiftUI. There is a Scale effect modifier in SwiftUI that we use for scaling. It can be an imageView or textView, or any other UIView that can be s.... Read More

Navigate to another view on button click in SwiftUI

By Samim

In this tutorial, we will see how to navigate to another view on a button click in SwiftUI. We can navigate to another view on button click by using the NavigationView and Navigati.... Read More

Format TextField for numbers only in SwiftUI

By Samim

In this tutorial, we will see how we can create a TextField that only accepts numbers as input in SwiftUI. We can make a TextField accept only numbers by using the onChange() modif.... Read More

Disable textfield in SwiftUI

By Samim

In this tutorial, we will see how to disable TextField in SwiftUI. A disabled TextField is useful when we don’t want users to change its text. This is helpful for showing inf.... Read More

Home Screen Quick Actions in SwiftUI

By Saruque Ahamed Mollick

This tutorial is all about Quick Actions in SwiftUI. We all know what quick actions are, but we don’t know that those actions are known as Quick Actions in iOS. To make it cl.... Read More

Change the label color of a SwiftUI Toggle switch

By Samim

In this tutorial, we will see how to change the color of the label of a toggle switch in SwiftUI. We can simply change the label color of a TextField by applying the .foregroundCol.... Read More