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