I have a class called HTTPHelper
which is responsible for doing all my back end API requests. All methods in this class are class
methods. As you know instance properties cannot be used from within a class
method. I have some properties that need initialization with a do{}catch{}
block which currently are being initiated from within an init(){}
like so:
class HTTPHelper{
init(){
do {
//initiate property
} catch{}
}
}
My question is, is there a mechanism similar to an init(){}
that would initiated a static property for a singleton?