SwiftUI Modal on launch

Hi, I was wondering how can I make a view appear as a modal on launch of an application without using "PresentationLink() having to be clicked.

Text("text 1")
    .presentation(Modal(Text("text 2")))

Thanks man!!! That worked like a charm!!!

Is it possible to Block the user from swiping down and dismissing the modal ?

Terms of Service

Privacy Policy

Cookie Policy