sindresorhus / Defaults

💾 Swifty and modern UserDefaults
https://swiftpackageindex.com/sindresorhus/Defaults/documentation/defaults
MIT License
1.93k stars 115 forks source link

High CPU and Hign Memory increase #154

Closed averyhome closed 7 months ago

averyhome commented 7 months ago

when i use like this

    .navigationDestination(isPresented: $isPushToHelp, destination: {
          SettingView()
    })

if SettingView contains @Default(.hiddenAds) var hiddenAds then the cup and memory will increase to the max

when i remove the @Default(.hiddenAds) var hiddenAds it will be ok please how can i resolve it

sindresorhus commented 7 months ago

Duplicate of #146

averyhome commented 7 months ago

Duplicate of #146 oops, but i can not find any solution in #146 or i need update the Defaults version?