OverrideEmojiDataSource.swift 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // OverrideEmojiDataSource.swift
  3. // LoopKitUI
  4. //
  5. // Created by Michael Pangburn on 1/7/19.
  6. // Copyright © 2019 LoopKit Authors. All rights reserved.
  7. //
  8. func OverrideSymbolInputController() -> EmojiInputController {
  9. return EmojiInputController.instance(withEmojis: OverrideEmojiDataSource())
  10. }
  11. private final class OverrideEmojiDataSource: EmojiDataSource {
  12. private static let activity = [
  13. "🚶‍♀️", "🚶‍♂️", "🏃‍♀️", "🏃‍♂️", "💃", "🕺",
  14. "⚽️", "🏀", "🏈", "⚾️", "🥎", "🎾",
  15. "🏐", "🏉", "🥏", "🎳", "🏓", "🏸",
  16. "🏒", "🏑", "🥍", "🏏", "⛳️", "🏹",
  17. "🥊", "🥋", "🛹", "⛸", "🥌", "🛷",
  18. "⛷", "🏂", "🏋️‍♀️", "🏋️‍♂️", "🤼‍♀️", "🤼‍♂️",
  19. "🤸‍♀️", "🤸‍♂️", "⛹️‍♀️", "⛹️‍♂️", "🤺", "🤾‍♀️",
  20. "🤾‍♂️", "🏌️‍♀️", "🏌️‍♂️", "🏇", "🧘‍♀️", "🧘‍♂️",
  21. "🏄‍♀️", "🏄‍♂️", "🏊‍♀️", "🏊‍♂️", "🤽‍♀️", "🤽‍♂️",
  22. "🚣‍♀️", "🚣‍♂️", "🧗‍♀️", "🧗‍♂️", "🚵‍♀️", "🚵‍♂️",
  23. "🚴‍♀️", "🚴‍♂️", "🎪", "🤹‍♀️", "🤹‍♂️", "🎭",
  24. "🎤", "🎯", "🎳", "🥾", "⛺️", "🐕",
  25. ]
  26. private static let condition = [
  27. "🤒", "🤢", "🤮", "😷", "🤕", "😰",
  28. "🥵", "🥶", "😘", "🧟‍♀️", "🧟‍♂️", "📅",
  29. "💊", "🍸", "🎉","⛰", "🏔", "🚗",
  30. "✈️", "🎢",
  31. ]
  32. private static let other = [
  33. "➕", "➖", "⬆️", "⬇️",
  34. "❗️", "❓", "‼️", "⁉️", "❌", "⚠️",
  35. "0️⃣", "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣",
  36. "6️⃣", "7️⃣", "8️⃣", "9️⃣", "🔟",
  37. ]
  38. let sections: [EmojiSection]
  39. init() {
  40. sections = [
  41. EmojiSection(
  42. title: LocalizedString("Activity", comment: "The title for the custom preset emoji activity section"),
  43. items: type(of: self).activity,
  44. indexSymbol: " 🏃‍♀️ "
  45. ),
  46. EmojiSection(
  47. title: LocalizedString("Condition", comment: "The title for the custom preset emoji condition section"),
  48. items: type(of: self).condition,
  49. indexSymbol: "🤒"
  50. ),
  51. EmojiSection(
  52. title: LocalizedString("Other", comment: "The title for custom preset emoji miscellaneous section"),
  53. items: type(of: self).other,
  54. indexSymbol: "⋯ "
  55. )
  56. ]
  57. }
  58. }