5 ms·
Prefer structs over classes != only use structs. There are plenty of valid reasons to use classes in Swift. For example if you want to have shared state you wi
by zffr 7mo ago
Prefer structs over classes != only use structs.
There are plenty of valid reasons to use classes in Swift. For example if you want to have shared state you will need to use a class so that each client has the same reference instead of a copy.
- VerifiedReports 7mo agoYes, that's what I said.