Emoji Picker for iOS using SwiftUI.
- Development with Xcode 16.2+
- Written in Swift 6.0
- Compatible with iOS 16.4+
import SwiftUI
import EmojiPalette
struct ContentView: View {
@State var showPopover = false
@State var emoji = ""
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)