top of page
Search


34. SwiftUI: Introducing Map and MapPin
Today I will show you how to use SwiftUI's Map and MapPin. Steps: First, import the MapKit framework. Then define a struct as the type of...
Hui Wang
Jun 3, 20221 min read


33. SwiftUI: Use TabView to implement paging quickly
Today I will show you how to use TabView's tabViewStyle to implement paging effects. Steps: First, create a ScrollView as a container for...
Hui Wang
Jun 2, 20221 min read


32. SwiftUI: Introducing MapKit
Today we'll use MapKit to create a map in SwiftUI. Steps: First, import MapKit framework. Make the current struct conform to the...
Hui Wang
Jun 1, 20221 min read


31. SwiftUI: Introducing WebKit
Today I will show you how to use view controls from other frameworks in the SwiftUI project. SwiftUI doesn't provide a web view, so we...
Hui Wang
May 31, 20221 min read


30. SwiftUI: Introducing TabView
Today I will show you how to use TabView. The TabView is located at the bottom of the screen. It allows users to switch between views...
Hui Wang
May 30, 20221 min read


28. SwiftUI: Introducing Toggle
Today I will show you how to use Toggle. The use of Toggle controls is very common. For example, the Bluetooth and Airplane mode switches...
Hui Wang
Apr 11, 20221 min read


27. SwiftUI: Introducing Stepper
Today I will show you how to use Stepper. Stepper has an "+" button, a "-" button, and a value label, perfect for fine-tuning the value...
Hui Wang
Apr 7, 20221 min read


26. SwiftUI: Introducing Slider
Today I will show you how to use Slider. The Slider is very easy to use. Users can quickly set the value by dragging the slider within...
Hui Wang
Apr 6, 20222 min read


25. SwiftUI: Introducing DatePicker
Today I will show you how to use DatePicker. DatePicker is similar to UIDatePicker in UIKit and is mainly used to provide a list of dates...
Hui Wang
Apr 5, 20222 min read


24. SwiftUI: Introducing Picker
Today I will show you how to use Picker. Picker is similar to UIPickerView in UIKit and is mainly used to provide a scrolling list to...
Hui Wang
Apr 4, 20222 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
Apr 3, 20221 min read

22. SwiftUI: Use Label to display the combination of Image, SF symbol, and Text
Let's get started! Knowledge points: Create a Label control that displays one line of text and an image to the left of the text. var...
Hui Wang
Mar 31, 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
Mar 31, 20221 min read

20. SwiftUI: How to scale and rotate an image view
Today I will show you how to scale and rotate an Image view. Knowledge points: Add the first Image view as a reference. Add a second...
Hui Wang
Feb 10, 20222 min read

19. SwiftUI: How to add a mask to Image view
Today I will show you how to add a mask to an Image view, which can be used to highlight the subject of the image. Knowledge points:...
Hui Wang
Feb 9, 20221 min read
bottom of page