From iOS 15.0+, apple has introduced AsyncImage.

AsynceImage: A view that asynchronously loads and displays an image.

This view uses the shared URLSession instance to load an image from the specified URL, and then display it. For example, you can display an icon that’s stored on a server:

AsyncImage(url: URL(string…

--

--

TextField is a control that displays an editable text interface.

In this blog, we’ll learn how to set the maximum limit of a text in Textfield using Combine.

The most elegant (and simple) way to set a character limit on the TextField is to use the native publisher event collect().

--

--

The easiest way to Sign in with Apple using SwiftUI.

SignInWithAppleButton
The view that creates the Sign in with Apple button for display.


SignInWithAppleButton
(.signIn) { request in
request.requestedScopes = [.email , .fullName]}
onCompletion: { result in
switch result { case .success(let authResults): print("Authorisation successful") case .failure(let error):

--

--