Difference between static function and singleton class in swift [closed]
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . I want to create a class where all utility methods will be kept and these methods will be used throughout the app. Problem:1 Is it good to create a singleton class and keep all necessary methods there or should I create a class where all function will be static. Problem:2