top of page
Search
Hui Wang
Nov 18, 20222 min read
78. SwiftUI: How to insert new items to a List (NavigationView)
Today I will show you how to insert new items into a List (demo with NavigationView). import SwiftUI struct ContentView: View { /// 1....
Hui Wang
Sep 12, 20222 min read
59. SwiftUI: Introducing Capsule
Today I will show you how to use Capsule. I will use multiple Capsules to draw a colored petal. Steps: First, add a Capsule. Its default...
Hui Wang
Jun 6, 20222 min read
36. SwiftUI: Hide UIActivityIndicatorView through AnyCancellable
Today I will show you how to use AnyCancellable to hide UIActivityIndicatorView. Steps: Continue the source code of the previous blog...
Hui Wang
Apr 3, 20221 min read
23. SwiftUI: Introduce TextEditor you can enter multi-line text
YouTube: Source Code: import SwiftUI struct ContentView: View { @State var content = "" @State var isAlert = false init() {...
Hui Wang
Mar 30, 20221 min read
21. SwiftUI: How to download and display network images using image view
YouTube: Source Code: import SwiftUI struct ContentView: View { @State private var remoteImage: UIImage? = nil let placeholderImage =...
Hui Wang
Jan 26, 20222 min read
13. SwiftUI: Open a modal window via Button
Today I will introduce how to use the sheet method of the Button control to open a modal window with specified content. Knowledge points:...
Hui Wang
Jan 23, 20222 min read
10. SwiftUI: Use SecureField ciphertext input box to receive the user's password
When the user is entering the password, we need to use the ciphertext to display the content entered by the user, which requires the use...
Hui Wang
Jan 22, 20223 min read
9. SwiftUI: Use TextField text input box to receive data from users
Today I will show you how to use TextField. TextField is a control that displays an editable text interface, mainly for receiving and...
bottom of page