Post

Replies

Boosts

Views

Activity

Reply to TabView reload all content constantly
Hi, I don't know if it's a good idea, but it solves de problem of constant reloading in my project. struct NavigationLazyViewContent: View: View {     let build: () - Content     init(_ build: @autoclosure @escaping () - Content) {         self.build = build     }          var body: Content {         build()     } } var body: someView { TabView(selection: $iSelectedTab) {                 NavigationLazyView(RestaurantManagmentDashboardHomeView(presenter: RestaurantManagmentDashboardHomePresenter())).tabItem {                     Image("Home_Selected")                     Text("")                 }.tag(0)                              NavigationLazyView(RestaurantManagmentDashboardObjectInventoryRouter.assembleModule()).tabItem {                     Image("List_Selected-1")                     Text("")                  }.tag(1)             } }
Mar ’21