Skip to content

Emoji Picker for iOS using SwiftUI

License

Notifications You must be signed in to change notification settings

Kyome22/EmojiPalette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmojiPalette

Emoji Picker for iOS using SwiftUI.

Requirements

  • Development with Xcode 16.2+
  • Written in Swift 6.0
  • Compatible with iOS 16.4+

Usage

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 ?? ""
        }
    }
}

Localization

  • English (en)
  • Japanese (ja)