We may come across use cases where we need to load data asynchronously when a view appears. SwiftUI introduced task(_:) modifier in iOS 15 that provides an option to run an asynchronous task when t...
How to add a Sign in with Apple button in SwiftUI
SwiftUI provides an easy way to add Sign in with Apple (SIWA) button using the view SignInWithAppleButton from Authentication Services framework The SIWA button can be added in a similar way like ...
How to find and kill a process running on a port in macOS
To find a process on a macOS El Capitan (10.15) and newer run the below command in Terminal lsof -i tcp:<port_number> eg: lsof -i tcp:5253 The lsof command will list all the process running...