Singletons are bad as they do not adhere to any memory deallocation rules when not manually implemented. There is a reason for injecting the object into the environment as it is made available to the entire app without the need creating singletons. https://dev.to/amrtaher1234/why-singletons-are-bad-220o
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: