sindresorhus / Settings

⚙ Add a settings window to your macOS app in minutes
MIT License
1.45k stars 100 forks source link

Namespace the preference pane identifier #34

Closed sindresorhus closed 5 years ago

sindresorhus commented 5 years ago

Protocols cannot have a tested types, which is why we currently have PreferencePaneIdentifier, but I just realized we can use typealias to achieve PreferencesPane.Identifier. As a bonus it's now shorter to define the identifiers too.

// @DivineDominion

DivineDominion commented 5 years ago

This is clever, I like it :)