This technique is demonstrated within the context of a SwiftUI application, but the real topic of discussion is the NetworkClient singleton used by the SwiftUI app. There's really no difference between how this technique applies for UIKit or AppKit, so it should still be relevant.
App Architecture
The overall app