// // 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 = [ "🍭", // lollipop "🧃", // juice box "ðŸĨĪ", // cup with straw (soda) "🍎", // candy "ðŸŊ", // honey pot "🍇", // grapes "ðŸŦ", // blueberries "🍈", // melon "🍉", // watermelon "🍊", // tangerine "🍋", // lemon "🍌", // banana "🍍", // pineapple "🍎", // red apple "🍏", // green apple "🍐", // pear "🍑", // peach "🍒", // cherries "🍓", // strawberry "ðŸĨ", // kiwi fruit "ðŸĨ­", // mango "ðŸŒ―", // ear of corn "ðŸŋ", // popcorn "🍘", // rice cracker "ðŸĄ", // dango "ðŸĶ", // soft ice cream "🍧", // shaved ice "🎂", // birthday cake "ðŸĨ ", // fortune cookie "☕ïļ", // coffee "ðŸŦ–" // tea ] return fast }() private static let medium: [String] = { var medium = [ "ðŸŒŪ", // taco "🍟", // french fries "ðŸģ", // cooking "ðŸē", // pot of food "ðŸĨ˜", // pan of food "ðŸą", // bento box "🍛", // curry rice "🍜", // steaming bowl (ramen / noodle soup) "🍠", // roasted sweet potato "ðŸĪ", // fried shrimp "ðŸĶŠ", // oyster "ðŸĨ", // fish cake with swirl "ðŸĨŠ", // sandwich "ðŸĨ™", // pita sandwich "🧆", // falafel "ðŸŦ”", // tamale "ðŸĨŦ", // canned food "ðŸĨŸ", // dumpling "ðŸĨĄ", // takeout box "ðŸĒ", // oden "ðŸĢ", // sushi "🍅", // tomato "ðŸĨ”", // potato "ðŸĨ•", // carrot "ðŸŒķ", // hot pepper "ðŸŦ‘", // bell pepper "🧅", // onion "🧄", // garlic "ðŸĨ”", // potato "ðŸĨ’", // cucumber "ðŸĨ—", // green salad "ðŸĨŽ", // leafy green "🍄", // mushroom "ðŸĨĶ", // broccoli "🍆", // eggplant "ðŸŦ˜", // beans "ðŸĨĨ", // coconut "🍞", // bread "ðŸĨ", // croissant "ðŸĨ–", // baguette bread "ðŸĨŊ", // bagel "ðŸŦ“", // flat bread "ðŸĨĻ", // pretzel "ðŸĨž", // pancakes "🧇", // waffle "🍙", // rice ball "🍚", // cooked rice "🍞", // baby bottle "ðŸĨ›", // glass of milk "ðŸŪ", // custard "ðŸĨ§", // pie "ðŸĻ", // ice cream "ðŸĐ", // doughnut "🍊", // cookie "🧁", // cupcake "ðŸĨŪ", // moon cake "🍰", // shortcake "ðŸŦ", // chocolate bar "🧋", // bubble tea ] return medium }() private static let slow: [String] = { var slow = [ "🍕", // pizza "ðŸĨ‘", // avocado "ðŸĨš", // egg "ðŸĨœ", // peanuts "🌰", // chestnut "🧀", // cheese wedge "ðŸŦ•", // fondue "🍖", // meat on bone "🍗", // poultry leg "ðŸĨ“", // bacon "🍔", // hamburger "🌭", // hot dog "ðŸŒŊ", // burrito "🍝", // spaghetti "ðŸĨĐ", // cut of meat "🧈", // butter "ðŸĶī", // bone ] return slow }() private static let other: [String] = { var other = [ "ðŸķ", // sake "ðŸū", // bottle with popping cork "🍷", // wine glass "ðŸļ", // cocktail glass "🍚", // beer mug "ðŸŧ", // clinking beer mugs "ðŸĨ‚", // clinking glasses "ðŸĨƒ", // tumbler glass "ðŸđ", // tropical drink "🧉", // mate "ðŸŦ—", // pouring liquid "ðŸĨĢ", // bowl with spoon "ðŸĨĪ", // cup with straw "ðŸĨĒ", // chopsticks "ðŸĩ", // teacup without handle "ðŸī", // fork and knife "ðŸ―", // fork and knife with plate "ðŸĨ„", // spoon "ðŸŦ™", // jar "🧊", // ice cube "🧂", // salt "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: "â‹Ŋ " ) ] } }