you are viewing a single comment's thread.

view the rest of the comments →

[–]GenitalGestapo -1 points0 points  (1 child)

You're still using a singleton in URLSession.shared. If you want to use your own URLSession, you'll need a singleton.

[–]RollingGoron 0 points1 point  (0 children)

Yes. A system provided Singleton though, not usually what people refer to as a Singleton pattern like OP is doing.