Swiftpack.co - vidovalianto/EmojiPickerView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vidovalianto.
vidovalianto/EmojiPickerView 1.1.0
Emoji Picker View for iOS
⭐️ 2
🕓 2 years ago
iOS
.package(url: "https://github.com/vidovalianto/EmojiPickerView.git", from: "1.1.0")

EmojiPickerView

Emoji picker view for iOS 📲🍎 A library to enforce user to pick an emoji 😃👍.

Demo: https://github.com/vidovalianto/EmojiApp

Requirements

  • iOS 14.0+
  • Swift 5.0+

Configurations

import EmojiPickerView

// put inside a view controller
let emojiPicker = EmojiPickerView()
emojiPicker.delegate = self

// conform the view controller to delegate
extension ViewController: EmojiPickerViewDelegate {
  func emojiDidClicked(emoji: String) {
  // set UILabel
    self.label.text = emoji
  }
}

Swift Package Manager

Adding EmojiPickerView as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/vidovalianto/EmojiPickerView.git", .upToNextMajor(from: "1.1.0"))
]

Change picker view background color

import EmojiPickerView

// put inside a view controller
let emojiPicker = EmojiPickerView()
emojiPicker.color = .systemBackground
emojiPicker.collectionViewColor = .systemBackground

Features

  • Search for emoji
  • Change background color

GitHub

link
Stars: 2
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics