That's funny. In Swift i needed to make sure something runs as early as possible and I had to do the same trick. Put the code in the declaration of a variable like this:
var loadTheme: Bool = { Style.loadTheme(); return true; }()
var loadTheme: Bool = { Style.loadTheme(); return true; }()
No comments yet.