This Restrict Emoji Input and Enforce Character Length in Swift (with UITextField & UITextView)
https://dreamcooder.medium.com/how-to-restrict-emoji-input-and-enforce-character-length-in-swift-with-uitextfield-uitextview-0f584dfa2388