Singletons in Swift | The Good, The Bad & The Ugly

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 4

  • @VeganCodes
    @VeganCodes 2 місяці тому +2

    hes back the legend

  • @tokero5199
    @tokero5199 2 місяці тому +2

    I will argue that unless you make the initialiser private this is not an actual singleton... Having a shared instance can still be useful but its not a singleton. Its also worth noting that shared instances will stay in memory for ever.

  • @card1nal312
    @card1nal312 2 місяці тому

    Thank you for best explanations! 💪🏻💥😊

  • @stasyanje4225
    @stasyanje4225 2 місяці тому

    It’s weird that a single object with no global variable technically is not a singleton