Saturday, November 21, 2026
HomeiOS Developmentios - Reminiscence enhance when utilizing a number of EnviromentObject - SwiftUI

ios – Reminiscence enhance when utilizing a number of EnviromentObject – SwiftUI

[ad_1]

I’m constructing a brand new app and I’m utilizing exterior APIs with it, I created a view fashions for each function so to illustrate I’ve a function A and this options have a full CRUD operations and I need to make these information obtainable throughout all app views so I used a number of @EnviromentObject

The query is: After I created a number of view fashions and people view fashions are ObservableObject to make the crud operations and share the info with all views it trigger an enormous enhance in reminiscence, generally it is rising to 400 mega on iPhone 14 Professional Max
So is it regular? I examined it with 5 EnvironentObjects

I am utilizing SwiftUI and I creating a brand new app so I need to make the info obtainable throughout all views, one thing like Core Knowledge however with exterior APIs

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments