top of page
Search

Hui Wang
Sep 18, 20221 min read
64. SwiftUI: Introducing LinearGradient
Compared with pure color, the gradient can enrich the image and give users a more substantial visual impact. Steps: First, create a Text...

Hui Wang
Sep 14, 20222 min read
62. SwiftUI: Introducing Path
Today I will show you how to use Path. Path can draw highly complex graphics, and I'm just showing its basic functions here. Steps:...

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
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
Sep 7, 20221 min read
53. Article: How do we use SwiftUI in the Medium iOS application
With the iteration of SwiftUI for nearly four years, especially the official version 4.0 coming soon this month, it indicates that...

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....
bottom of page