adspace
Answer Posted / Vijay Kumar
A Singleton is a design pattern that restricts the instantiation of a class to a single instance. In Swift, you can create a Singleton by using a private constructor and a static shared instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers