Conversation
This Tweet is from a suspended account. Learn more Nice! One thought: it’s dangerous to have methods like removeSound on a singleton—how can any client know it’s safe to call that? This Tweet is from a suspended account. Learn more This Tweet is from a suspended account. Learn more i.e. maybe one component wants to prepare all sounds on launch, and another wants to play them—should they both ref by filename? This Tweet is from a suspended account. Learn more Other alternative is to pass around instances of a Sound type:
struct Sound {
init(named: String)
}
Dunno if it’s worth it.