Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eastriverlee/nativeemojipicker
SwiftUI emoji picker that uses native emoji keyboard
https://github.com/eastriverlee/nativeemojipicker
emoji genmoji ios swift swiftui
Last synced: 1 day ago
JSON representation
SwiftUI emoji picker that uses native emoji keyboard
- Host: GitHub
- URL: https://github.com/eastriverlee/nativeemojipicker
- Owner: eastriverlee
- License: mit
- Created: 2025-01-14T14:33:37.000Z (13 days ago)
- Default Branch: main
- Last Pushed: 2025-01-14T16:01:27.000Z (13 days ago)
- Last Synced: 2025-01-26T07:12:49.782Z (1 day ago)
- Topics: emoji, genmoji, ios, swift, swiftui
- Language: Swift
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NativeEmojiPicker
this little SwiftUI library is an emoji picker.
it uses native emoji keyboard that apple gave us,
instead of other emoji pickers that are missing important features such as:
- multilingual emoji search
- **genmoji** support## example
```swift
import SwiftUI
import NativeEmojiPickerstruct EmojiPicker: View {
@State var isPresented: Bool = false
@State var emoji: String? = "🤯"
@State var genmoji: NSAttributedString? = nil
var hasNothing: Bool { emoji == nil && genmoji == nil }
var body: some View {
Button(action: { isPresented.toggle() }) {
ZStack {
Color.gray.opacity(0.1)
Image(systemName: "circle.dashed")
.padding(2)
.foregroundStyle(.gray)
.opacity(hasNothing ? 0.4 : 0)
EmojiView(emoji, genmoji)
}
.clipShape(.circle)
}
.frame(width: 40, height: 40)
.nativeEmojiPicker(
isPresented: $isPresented,
selectedEmoji: $emoji,
selectedGenmoji: $genmoji
)
}
}
```## features
- closes down when user types non emoji key
- closes keyboard when user changes language (however it's also triggered by emoji search, so it's turned off by default)
- multilingual emoji search
- genmoji support (simulator is not supported as of now; Jan 2025)
- all emojis with all color combinations
- all future emojis
- simple and small codebase