How to directly use emoji from macOS menubar in Swift?

We can directly insert emoji’s in Swift code using mac OS keyboard character viewer. By default, the character viewer is not enabled. We can enable it through System Preferences -> Language & Region -> Keyboard preferences -> Keyboard -> Select the option : Show keyboard and emoji viewers in menu bar. Now we can see a small symbol near by the wifi symbol denoting the character viewer.

Leave a Reply

%d bloggers like this: