Emoji Picker for iOS using SwiftUI.
- Development with Xcode 15.2+
- Written in Swift 5
- swift-tools-version: 5.8
- Compatible with iOS 16.4+
import SwiftUI
import EmojiPalette
struct ContentView: View {
@State var showPopover: Bool = false
@State var emoji: String = ""
var body: some View {
VStack {
Button {
showPopover = true
} label: {
Text(emoji)
.font(.largeTitle)
}
.emojiPalette(selectedEmoji: $emoji,
isPresented: $showPopover)
}
.padding()
.onAppear {
emoji = EmojiParser.shared.randomEmoji().character
}
}
}
- English (en)
- Japanese (ja)