Sourabh Gupta’s Post

View profile for Sourabh Gupta, graphic

Founder MarsTech | Principle Mobile Architect

Knowledge Sharing: Day 7 Singletons in Swift A class Singleton provides a single, globally accessible instance that can be accessed via referance whereas a struct Singleton creates copies when accessed. Struct singlton is by definition is thread safe but a class singleton suffers from risk of concurrent modifications. #Swift #SwiftUI #UIKit #iOS #iOSDevelopment #Singletons #AppDevelopment #Programming #MobileDevelopment

  • text

To view or add a comment, sign in

Explore topics