Replace allValues with CaseIterable allCases
dehlen opened this issue · comments
With Swift 4.2 (see Proposal SE-0194) a new protocol is introduced called CaseIterable which automatically generates all available cases for an enum. This way the allValues method could be deleted. However I guess we have to wait for the new Xcode 10 to try this new language feature. Whenever I get my hands on the new beta I am happy to help with a PR. I just wanted to open an issue in order to document this.