Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 854 Bytes

README.md

File metadata and controls

47 lines (37 loc) · 854 Bytes

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)