kiliankoe / Karte

🗺 Conveniently launch directions in other iOS apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make App.all public

fluidsonic opened this issue · comments

We'd like to do what #21 suggests directly in our app by simply checking which apps are installed.

Unfortunately the following won't work because .all isn't public:

let apps = App.all.filter(Karte.isInstalled)
if apps.count == 1 {  }

Btw, writing your own .all isn't event needed. You can simply use the CaseIterable protocol on the enum.

Ah, good point 👍 CaseIterable wasn't around yet when first writing this code.