How to use emoji’s as constants and variables in Swift?

We can use emoji’s as names of constants and variables in Swift. To include emoji’s directly in code, go to Xcode -> Edit  and scroll down to Emoji’s and Symbols. Click it and it will open Character Viewer.We can drag and drop the emoji’s we need for our code from there.

Leave a Reply

%d bloggers like this: