100 Days of SwiftUI solutions One of the greatest resources on the Internet to learn Swift and SwiftUI is Paul[…]
Read moreCategory: Programming
How to use async/await with URLSession.shared.Data in iOS 15?
What is Async/await? In the latest Swift, the new async/await API is introduced for iOS 15. The async/await aims at[…]
Read moreHow to use custom date format with JSONDecoder and Codable
Quick background When writing Swift code interacting with web service, we often use Codable protocol to encode and decode data.[…]
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 moreRetrieving iOS calendar event with EventKit
To retrieve iOS calendar event, we need to work with EventKit. First we will create a EKEventStore, then we need[…]
Read moreConvert ISO8601 time format to Python datetime with time zone
Working in web application sometimes we have the situation where we need to receive a time string and convert it[…]
Read more