Skip to content

Sample package for the SwiftUI Essentials course.

License

Notifications You must be signed in to change notification settings

bignerdranch/EmojiUtilities

Repository files navigation

EmojiUtilities

EmojiUtilities is a sample package for the SwiftUI Essentials course at Big Nerd Ranch.

Features

Emoji

A simple wrapper struct that is guaranteed to be a String containing exactly 1 emoji.

EmojiField

A UIControl (for UIKit) or NSControl (for AppKit) that allows inputting exactly 1 emoji from the system keyboard, similar to the avatar feature in Messages, Reminders, and Contacts on iOS 14 and macOS 11.

Installation

Use Xcode 11 or higher for Swift Packages support. See Xcode Help: “Link a target to a package product” or WWDC 2019: “Adopting Swift Packages in Xcode” for details. At the “Choose Package Repository” window, enter the repository URL https://github.com/bignerdranch/EmojiUtilities.git.