Posts from Swift

Pass a struct to a function in Swift

By Saruque Ahamed Mollick

In this tutorial, we will learn how to pass a struct to a function (by using it as a parameter,)  in Swift. We will pass it just like we pass other data types. We know that struct.... Read More

Merge views in SwiftUI using compositingGroup modifier

By shagrafnasheet

In this SwiftUI tutorial, we will learn to merge SwiftUI elements into one. And we will learn the usage of the compositing group modifier. What this blog will cover: Custom alert .... Read More

How to display Arabic keyboard in Swift

By shagrafnasheet

In this Swift tutorial, we’ll see how we can enable an Arabic keyboard and display an Arabic keyboard for any particular text field.   What this blog will cover: custom .... Read More

Numeric Textfield in SwiftUI

By shagrafnasheet

In this SwiftUI tutorial, we will learn to create something that we use a lot in our iOS applications. So we will create a numeric text field that only accepts numbers as input. &n.... Read More

How to copy text to the clipboard in SwiftUI

By Samim

In this tutorial, we will see the process of how to copy text to the clipboard in SwiftUI. SwiftUI doesn’t provide direct clipboard manipulation. So, we can utilize the UIPas.... Read More

Remove the left and right Padding of each row in the List in SwiftUI

By Samim

In this tutorial, we will see how to remove the left and right Padding of each row in the List in SwiftUI. We can remove the left and right padding of a list by using the listRowIn.... Read More

How to reload View in SwiftUI

By Samim

In this tutorial, we will see the process of reloading views in SwiftUI using various data properties. The SwiftUI views will be automatically updated when the data they depend on .... Read More

Disable the uppercase text style for section headers in SwiftUI Lists

By Samim

In this tutorial, we will see how to disable the uppercase text style for section headers in SwiftUI Lists. When we use the List view and add section headers, they usually appear i.... Read More