This article in Swift's documentation discusses creating a singleton with a class. I suspect it mentions only using classes because the topic is about Cocoa design patterns.
I wonder, in general, what are the pros and cons of using enums and structs vs. classes in creating singletons?
If I’m modelling a real world object that obviously cannot be copied (e.g. electrical relay attached to a raspberry pi) then I make it a class singleton because references make more sense in this case.