Skip to content

Latest commit

ย 

History

History
30 lines (20 loc) ยท 609 Bytes

README.md

File metadata and controls

30 lines (20 loc) ยท 609 Bytes

EmojiMeals

Find what you can cook with your emojis

Emoji recipes fetched from https://raw.githubusercontent.com/EmojiMeals/recipes/master/recipes.json

Install using SwiftPM

.package(
	url: "https://github.com/schmidyy/meals-swift",
	.branch("master")
)

Usage

let meals = EmojiMeals()
meals.mealify("๐Ÿž", "๐Ÿ…", "๐Ÿง€") // "๐Ÿ•"

// Provide ingredients in any order

meals.mealify("๐Ÿง€", "๐Ÿž", "๐Ÿ…") // "๐Ÿ•"

// Provide other recipes manually

meals.recipes.append(Recipe(ingredients: ["๐Ÿฐ", "๐ŸŒš"], meal: "๐Ÿฅฎ"))
meals.mealify("๐Ÿฐ", "๐ŸŒš") // "๐Ÿฅฎ"