Mobile
Article

Watch: Singleton Patterns in Swift

By Brett Romero

No, the singleton pattern isn’t an odd dating technique. It’s a powerful construct that lets you utilize classes without creating new instances each time. It’s a fairly basic construct to explain and implement but can reap tons of benefit. In this short video, we’ll see how it is implemented in Swift.

Loading the player…

  • Eve

    Thats a Global “variable”

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in Mobile, once a week, for free.