| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- //
- // FoodEmojiDataSource.swift
- // LoopKit
- //
- // Copyright ยฉ 2017 LoopKit Authors. All rights reserved.
- //
- public func CarbAbsorptionInputController() -> EmojiInputController {
- return EmojiInputController.instance(withEmojis: FoodEmojiDataSource())
- }
- private class FoodEmojiDataSource: EmojiDataSource {
- private static let fast: [String] = {
- var fast = [
- "๐ญ", "๐", "๐", "๐", "๐", "๐", "๐", "๐",
- "๐", "๐", "๐", "๐", "๐", "๐", "๐ฅ",
- "๐
", "๐ฅ", "๐ฅ", "๐ฝ", "๐ถ", "๐ฅ", "๐ฅ", "๐",
- "๐", "๐ฅ", "๐ฅ", "๐ฅ", "๐ฟ", "๐", "๐",
- "๐", "๐ข", "๐ฃ", "๐ก", "๐ฆ", "๐ง", "๐จ",
- "๐ฉ", "๐ช", "๐", "๐ฐ", "๐ซ", "๐ฌ", "๐ฎ",
- "๐ฏ", "๐ผ", "๐ฅ", "โ๏ธ", "๐ต",
- "๐ฅฅ", "๐ฅฆ", "๐ฅจ", "๐ฅ ", "๐ฅง",
- ]
- return fast
- }()
- private static let medium: [String] = {
- var medium = [
- "๐ฎ", "๐", "๐", "๐ณ", "๐ฒ", "๐ฑ", "๐",
- "๐", "๐ ", "๐ค", "๐ฅ", "๐น",
- "๐ฅช", "๐ฅซ", "๐ฅ", "๐ฅก",
- ]
- return medium
- }()
- private static let slow: [String] = {
- var slow = [
- "๐", "๐ฅ", "๐ฅ", "๐ฐ", "๐ง", "๐", "๐", "๐ฅ",
- "๐", "๐ญ", "๐ฏ", "๐", "๐ฅฉ"
- ]
- return slow
- }()
- private static let other: [String] = {
- var other = [
- "๐ถ", "๐พ", "๐ท", "๐ธ", "๐บ", "๐ป", "๐ฅ", "๐ฅ",
- "๐ฅฃ", "๐ฅค", "๐ฅข",
- "1๏ธโฃ", "2๏ธโฃ", "3๏ธโฃ", "4๏ธโฃ", "5๏ธโฃ",
- "6๏ธโฃ", "7๏ธโฃ", "8๏ธโฃ", "9๏ธโฃ", "๐"
- ]
- return other
- }()
- let sections: [EmojiSection]
- init() {
- sections = [
- EmojiSection(
- title: LocalizedString("Fast", comment: "Section title for fast absorbing food"),
- items: type(of: self).fast,
- indexSymbol: " ๐ญ "
- ),
- EmojiSection(
- title: LocalizedString("Medium", comment: "Section title for medium absorbing food"),
- items: type(of: self).medium,
- indexSymbol: "๐ฎ"
- ),
- EmojiSection(
- title: LocalizedString("Slow", comment: "Section title for slow absorbing food"),
- items: type(of: self).slow,
- indexSymbol: "๐"
- ),
- EmojiSection(
- title: LocalizedString("Other", comment: "Section title for no-carb food"),
- items: type(of: self).other,
- indexSymbol: "โฏ "
- )
- ]
- }
- }
|