Skip to content

fwcd/swift-mensa

Repository files navigation

Swift Mensa

Build Docs

Library for querying meal plans from German university canteens. Uses the OpenMensa API.

Example

import Mensa

let client = MensaClient()
let canteens: [Canteen] = try await client.canteens()
let todaysMeals: [Meal] = try await client.meals(for: canteens[0].id)

See the Snippets folder for more examples.