Re:Emerging Best Practices in Swift
by Glide on Tuesday November 17, 2015 @11:00PM
(#10585831)
I think the DI was for a view controller in this case.
In normal usage I would agree. DI -> use the constructor. Even in languages like Java and C# I would advocate constructor injection. View controllers and where they get instantiated with storyboards, xibs, etc? Not so much.
[ Parent
| on HN ]