Posts by Samim

Author Biographical Info: Not available

@ObservedObject and Friends in SwiftUI

By Samim

In this tutorial, we will know about @ObservedObject and friends in SwiftUI. In SwiftUI, the @ObservedObject is a property wrapper for observing changes to objects according to the.... Read More

Find last Saturday of a month in Swift

By Samim

In this tutorial, we will see how to find the last Saturday of a month in Swift, that means I will print the date of the last Saturday. First of all, to get any day of the month we.... Read More

Create a custom segmented control in SwiftUI

By Samim

In this tutorial, we will see how to create a custom segment control in SwiftUI. A segment control is like a row of buttons or tabs that lets us pick from different options. We hav.... Read More

Create a share sheet in SwiftUI

By Samim

In this tutorial, we will see how to create a share sheet in SwiftUI. The share sheet is like a menu that pops up on our phone or computer when we want to share something. Suppose .... 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

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