Posts from Swift

Rearrange rows in a list in SwiftUI

By Samim

In this tutorial, we will see how to rearrange rows in a list in SwiftUI. Row movement within a list is simple with SwiftUI for iOS 16.0 or later, but older iOS versions require a .... Read More

Haptic Feedback with Sound in SwiftUI – sensoryFeedback

By Saruque Ahamed Mollick

In my previous tutorial, I explained how to use .sensoryFeedback in SwiftUI. Now, in this tutorial, I will show you how we can add sound effect along with haptic effect. Unfortunat.... Read More

Haptic feedback (Vibration) in SwiftUI using sensoryFeedback

By Saruque Ahamed Mollick

In this tutorial, I will show you how to add haptic feedback on button press in SwiftUI. The modifier we need is: .sensoryFeedback(parameters) Before iOS 17, we were required to us.... Read More

Scroll to a specific row in a list in SwiftUI

By Samim

In this tutorial, we will see how to scroll to a specific row in a list in SwiftUI. In SwiftUI, scrolling to a particular row in a List can be achieved using the ScrollViewReader. .... Read More

Delete rows from a List using onDelete in SwiftUI

By Samim

In this tutorial, we will see how to delete rows from a List using the onDelete() modifier in SwiftUI. SwiftUI provides us a onDelete() modifier to control how objects should be de.... Read More

Dynamically adjust the color of an SF Symbol in SwiftUI

By Samim

In this tutorial, we will see how to dynamically adjust the color of an SF Symbol in SwiftUI. We can use SF Symbol to display icons in our app in SwiftUI. SF Symbols are a set of i.... Read More

is only available in iOS 17.0 or newer – Working solution

By Saruque Ahamed Mollick

Hello, in this article I have come up with a solution to is only available in iOS 17.0 or newer type of errors. I know you have landed on this page because your device is compatib.... Read More

How to take action when the user submits a TextField in SwiftUI

By Samim

In this tutorial, we will see how to take action when the user submits a TextField in SwiftUI. We can use the .onSubmit modifier to take action when a user submits a TextField. Thi.... Read More