本专栏存放的是 Swift/SwiftUI 以及苹果平台开发相关内容的笔记、问题及其解决方案(未来或许会改名吧)。
2023-06-12 | #Words: 323
ZhongUncle introduce how to convert number from some base to other base in Swift(for example, decimal to hexadecimal, octal to binary)
2023-04-22 | #Words: 570
How to convert an array into a dictionary in Swift (keywords are array elements, values are subscript numbers)
2023-04-02 | #Words: 973
Xcode Test cannot meet our need, so we need to write the testing function mannully. The main of testing function is measure time.
2022-11-24 | #Words: 608
From iOS 16, Apple start to deprecate NavigationView ZhongUncle introduces how to use new NavigationStack and NavigationSplitView how it works and similar things
2022-11-07 | #Words: 346
ZhongUncle introduce how to get the screen size using bounds and nativeBounds in Swift/SwiftUI
2022-11-07 | #Words: 497
Recently Apple changes UIScreen.main.bounds to wrong values, so I wrote this blog as addition (the original blog has also been modified).
2022-10-25 | #Words: 823
ZhongUncle will introduce how to grant different permissions of Safari Extension, like types, domains, kinds.
2022-09-23 | #Words: 3101
At WWDC2022, Apple provided the chart-related package `Charts` for SwiftUI, so you don’t have to work hard to implement the chart function yourself.
2022-08-13 | #Words: 1375
Starting from iOS 15.0, Apple has abandoned the previous.animation(Animation?) and recommends developers to use .animation(Animation?, value: Equatable) or withAnimation instead.Personally, I feel that although I may not be used to it after the revision, the possibilities and freedom of development are greater.But before talking about the difference between the two, we need to understand UI animation. You can skip this part if you understand it.What is animation.Animation is a process of attribute changes such as various displacements, color changes, size changes, etc.Specific to SwiftUI's View, it is their .offset, .foregroundC
2022-07-17 | #Words: 1392
ZhongUncle introduces how to jump to other pages and views in SwiftUI. I shows two methods and new method after iOS 16.
2022-07-08 | #Words: 133
ZhongUncle introduces how to use Swift to parses URLs.
2022-03-23 | #Words: 2953
How to modify TabView in SwiftUI (including properties of tabItem), such as color, position, size, etc.
2022-03-14 | #Words: 1005
How to delay execution of operations or scheduled automatic execution of operations (using timer Timer and asynchronous DispatchQueue.main.asyncAfter).
2022-03-04 | #Words: 188
How to get data from Date type in SwiftUI, like hour, minute, etc.
2022-02-22 | #Words: 959
Apple provides 14 major categories, a total of 174 image processing methods and some common filters in the Core Image API.
2022-02-21 | #Words: 1081
ZhongUncle introduces two ways to push notifications in SwiftUI from ZhongUncle, because no many people talk about how to do in SwiftUI.
2022-02-11 | #Words: 1390
Obtaining JSON from the website API and displaying the text is a very common usage scenario in development.
2022-01-28 | #Words: 407
When I use the VideoPlayer View in SwiftUI, I notice no “X” back button and or other functions in iPod Touch, etc.
2022-01-20 | #Words: 324
ZhongUncle introduce how to obatin the size of a View in SwiftUI. You can get height or width of a View component.
2022-01-11 | #Words: 234
ZhongUncle will introduce how to modify the size of SF Symbol in SwiftUI.
2021-12-10 | #Words: 695
SwiftUI cannot directly call the camera and photo album, it needs to be used together with UIKit.
2021-12-10 | #Words: 608
I will tell you how to get images or photos from the system album in SwiftUI. SwiftUI cannot obtain the system album content by itself, so it has to rely on UIKit.
2021-04-03 | #Words: 420
ZhongUncle introduces how to obtain information of device, system and battery in Swift.
2021-03-14 | #Words: 873
How to define custom colors in SwiftUI by UIColor and Color Set include dark model dark mode.