Skip to content

Commit

Permalink
added support for showSeatLabels (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
bverbeken authored Apr 17, 2024
1 parent d0e64ed commit 85f2575
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions seatsio-ios/Example/SeatingChartSample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class SeatingChartSample: UIViewController {
.priceFormatter({ (price) in "\(price)$" })
.objectTooltip(ObjectTooltip().showAvailability(true))
.showLegend(true)
.showSeatLabels(true)
.onSelectionInvalid({ (errors) in print(errors) })
.onObjectSelected({ (object, ticketType) in
print(object, ticketType)
Expand Down
7 changes: 7 additions & 0 deletions seatsio-ios/SeatingChartConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class SeatingChartConfig: Encodable {
var alwaysShowSectionContents: Bool?
var showSectionContents: String?
var showLegend: Bool?
var showSeatLabels: Bool?
var legend: Legend?
var showMinimap: Bool?
var showActiveSectionTooltip: Bool?
Expand Down Expand Up @@ -200,6 +201,11 @@ public class SeatingChartConfig: Encodable {
return self
}

public func showSeatLabels(_ showSeatLabels: Bool) -> Self {
self.showSeatLabels = showSeatLabels
return self
}

public func legend(_ legend: Legend) -> Self {
self.legend = legend
return self
Expand Down Expand Up @@ -456,6 +462,7 @@ public class SeatingChartConfig: Encodable {
case alwaysShowSectionContents
case showSectionContents
case showLegend
case showSeatLabels
case legend
case showMinimap
case showActiveSectionTooltip = "showActiveSectionTooltipOnMobile"
Expand Down

0 comments on commit 85f2575

Please sign in to comment.