Posts from Swift

Create TextField in SwiftUI

By Samim

In this tutorial, we will see how to create a TextField and add border and padding to the text field in SwiftUI. A TextField is a view in SwiftUI that is used to generate a text in.... Read More

Let user search items from a List in SwiftUI

By Samim

In this tutorial, we will see how to let users search items from a List in SwiftUI. We can create a simple search functionality for a list in SwiftUI using the List and TextField c.... Read More

Clear a TextField on button tap in SwiftUI

By Samim

In this tutorial, how to clear a TextField on a button tap in SwiftUI. We can programmatically clear or empty a TextField on a button tap by modifying the value bound to the TextFi.... Read More

Change the TextField values programmatically in SwiftUI

By Samim

In this tutorial, we will see how to change the TextField values programmatically in SwiftUI. In this article, we will cover the topics mentioned below. Programmatically Changing T.... Read More

Change the TextField style after tapping on it in SwiftUI

By Samim

In this tutorial, we will see how to change the TextField style after tapping on it in SwiftUI. In SwiftUI, we can change the style of a TextField after tapping on it by using the .... Read More

.contentTransition(.numericText()) not working as expectation

By Saruque Ahamed Mollick

In this tutorial, I will show you why .contentTransition(.numericText()) does not work as per our expectations. If you have tried using .contentTransition(.numericText()) in your S.... Read More

Customize the submit button for TextField and SecureField in SwiftUI

By Samim

In this tutorial, we will see how to customize the submit button for TextField and SecureField in SwiftUI. Actually we can only change the label of that button. In SwiftUI, we can .... Read More

Add actions to alert buttons in SwiftUI

By Samim

In this tutorial, we will see how to add actions to alert buttons in SwiftUI. We can add actions to alert buttons using the .alert modifier along with the Alert structure in SwiftU.... Read More