SHORT QUESTIONS

How i will back previous view without using .navigationBar() in swiftUI?

Declare in properties field top in the View:  @Environment(\.presentationMode) var presentationMode finally write the action code: presentationMode.wrappedValue.dismiss()

J
Joynal Abedin
4
Declare in properties field top in the View:  @Environment(\.presentationMode) var presentationMode finally write the action code: presentationMode.wrappedValue.dismiss()
J

Written by Joynal Abedin

Passionate about technology, code, and sharing knowledge.

0 Comments

Leave a Comment