top of page
Search
Hui Wang
Sep 8, 20221 min read
57. Article: Lock screen widgets in SwiftUI
Lock screen widgets are the most crucial feature update in iOS 16. As the top access portal on the iPhone device, we need to grasp the...
Hui Wang
Sep 8, 20221 min read
56. Article: SwiftUI Gauge
Gauge is a new SwiftUI view introduced in iOS 16 (SwiftUI 4). It is a view that shows a value within a range. In the real world, a gauge...
Hui Wang
Sep 8, 20221 min read
55. Article: ContextMenu in SwiftUI
In UiKit, pressing with 3D Touch enables Peek and Pop to preview content quickly and provide contextual menu actions, creating a great...
Hui Wang
Jun 17, 20221 min read
42. SwiftUI: Introducing Rectangle and RoundedRectangle
Today I will show you how to use Rectangle and RoundedRectangle. Steps: First, draw a simple Rectangle with a default fill color of...
Hui Wang
Jun 13, 20221 min read
41. SwiftUI: Introducing Circle
Today I will show you how to use Circle. Steps: Draw a Circle. Its fill color is black by default. Circle() Fill the Circle with blue by...
Hui Wang
Jun 12, 20222 min read
40. SwiftUI: Introducing ViewModifier
Today I will show you how to use ViewModifier. The ViewModifier is similar to CSS in web design, and is mainly used to integrate a set of...
Hui Wang
Jun 11, 20222 min read
39. SwiftUI: Introducing Group and AnyView
Today I will show you how to use Group and AnyView. Steps: First, add a random Bool that is used to determine which view to display....
Hui Wang
Jun 9, 20221 min read
38. SwiftUI: Use Color, Gradient, and Image as the background of the view
Today I will show you how to use color, gradient, and image as the background of the view Steps: First, add a Text. Use yellow as the...
Hui Wang
Jun 8, 20221 min read
37. SwiftUI: View rotation and offset
Today I will show you how to use the rotate and offset functions to mirror a view. Steps: First, import an image with half the portrait....
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
Jun 4, 20222 min read
35. SwiftUI: Using UIKit's UIActivityIndicatorView in SwiftUI
In addition to the circular progress bar provided by SwiftUI 2.0, we can also use UIActivityIndicatorView in UIKit to achieve this....
Hui Wang
Jun 3, 20221 min read
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 2, 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 1, 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
May 31, 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...
bottom of page