How to use secure password text field in SwiftUI with SecureField

SecureField in SwiftUI is a simple control that shows an editable text interface while masking user input to keep it private just in case anyone was watching over their shoulder.  SecureField is great for creating secure password input text fields and it works exactly the same as regular TextField. We’ve covered TextField extensively in a previous … 

 

SwiftUI TextField complete tutorial

TextField in SwiftUI is a simple control that shows an editable text interface (equivalent to UITextField in UIKit). Because TextField allows a user to type text, it also needs a way of storing the entered text in a State variable which can then be used to read the input. The appearance of TextField can further be … 

 

SwiftUI Text View complete tutorial

Text is a view in SwiftUI which displays one or more lines of text. Experiment with the code presented below on your own to get a feel of how to work with Text view in practice. In its simplest form, to display one line of text, use it like that: Text(“SwiftUI Text View Tutorial”) To … 

 

How to make HTTP PUT request with JSON as Data in Swift

In this tutorial we’re going to learn how to make an HTTP PUT request using uploadTask(with:from:) method by sending a JSON dictionary as a Data structure. In general, PUT request is great for creating a new resource or overwriting it. As you can see from Apple’s documentation, the uploadTask method looks like this: func uploadTask(with request: URLRequest, …