chrs1885 / Capable

Unified accessibility API for iOS, macOS, tvOS & watchOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Thanks @dehlen for your input. This has been added with #28.