Could you suggest DI (or something similar)? E.g. code example. Should work on iOS.
I want to have static class/object/whatever, that I could access from other classes. This static class needs initialization (passing object, done once). I don't want to pass its reference everywhere.
a
Andreas Sinz
05/03/2018, 11:32 AM
A static class/object/whatever can be initialized from everywhere and there is only one instance of it, there is no need for DI here?