ALBusSeatViewDataSource
public protocol ALBusSeatViewDataSource
This protocol represents the data model of seatView
-
Asks the data source to return seat type given indexPath of seatView
Declaration
Swift
func seatView(_ seatView: ALBusSeatView, seatTypeForIndex indexPath: IndexPath) -> ALBusSeatType
Parameters
seatView
SeatView requesting the seatType
indexPath
Indexpath indicating a seat in seatView
-
Asks the data source to return seat number text given indexPath of seatView
Declaration
Swift
func seatView(_ seatView: ALBusSeatView, seatNumberForIndex indexPath: IndexPath) -> String
Parameters
seatView
SeatView requesting the seat number text
indexPath
Indexpath indicating a seat in seatView
-
Asks the data source to return number of section given seatView
Declaration
Swift
func numberOfSections(in seatView: ALBusSeatView) -> Int
Parameters
seatView
SeatView requesting the number of section
-
Asks the data source to return number of seat in a given section of a seatView
Declaration
Swift
func seatView(_ seatView: ALBusSeatView, numberOfSeatInSection section: Int) -> Int
Parameters
seatView
SeatView requesting the number of seat given section
section
An index number indicating a section in seatView