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. }