From 45ddd12690bec33bed776777088abbf4e1d20833 Mon Sep 17 00:00:00 2001 From: mroloux Date: Wed, 8 Jan 2025 10:12:49 +0100 Subject: [PATCH] Documented extraData --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index bd6d30c..65e65bc 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,17 @@ SeatingChartConfig() }) ``` +### extraData + +`extraData` on objects is exposed as a `JSON` object from `[SwiftyJSON]`(https://github.com/SwiftyJSON/SwiftyJSON): + +```swift +SeatingChartConfig() + .onObjectSelected({ (object, ticketType) in + print(object.extraData!["foo"]) + }) +``` + ### chart.listSelectedObjects ```swift