What is Async/await? In the latest Swift, the new async/await API is introduced for iOS 15. The async/await aims at[…]
Read moreCategory: iOS
How to make objects move with SwiftUI: learn in just 2 minutes with this simple example
Today I will go through a simple example about how to make objects move with SwiftUI. This example will demonstrate[…]
Read moreHow to fix onTapGesture not working on SwiftUI picker
Picker is a very useful feature in SwiftUI. It supports several picker styles (for reference, check this post). However, it[…]
Read moreHow to localize iOS app (XCode 12)
At some point, we may need to support multiple languages in our app. This is where localization comes in. We[…]
Read moreHow to change app name for an iOS app in Xcode
Sometimes we start a project and decide to change the app name later on. How to change app name for[…]
Read moreCalculating time difference in minutes between two dates in Swift
In some cases, we need to get time difference in Swift for two dates. In this post I will show[…]
Read moreSwiftUI: Navigating back to previous view after actions
Sometimes we want to navigate to the previous view after some actions are performed. For example, I was writing some[…]
Read moreFixing SwiftUI NavigationView on iPad
When moving a NavigationView originally designed only for iPhone to iPad, most likely you will find the view is not[…]
Read moreMultiline text input in SwiftUI (iOS 14)
As we know SwiftUI has been evolving since it was introduced. In iOS 13 when we want to create a[…]
Read moreSetting transparent background for List view in SwiftUI
Today I encountered the issue that when I set up a List view, the List background is always white, even[…]
Read more