NOT UP-TO-DATE ANYMORE, UNMAINTAINED. CHECK european-transport-feeds INSTEAD. List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.
To run the example project, clone the repo, and run pod install from the Example directory first.
Screenshots
Start
Select
Gender Selection
Voilà!
Installation
ALBusSeatView is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod'ALBusSeatView'
Usage
// If you want to config more// let config = ALBusSeatViewConfig()// ALBusSeatView(withConfig: config)let seatView =ALBusSeatView()
seatView.delegate=self
seatView.dataSource=self
view.addSubview(seatView)
//ALBusSeatViewDataSourcefuncseatView(_seatView: ALBusSeatView, numberOfSeatInSectionsection: Int) ->Int {
return43// Total seat count
}
funcseatView(_seatView: ALBusSeatView, seatNumberForIndexindexPath: IndexPath) ->String {
return"10"// Seat Number
}
funcseatView(_seatView: ALBusSeatView,
seatTypeForIndexindexPath: IndexPath) -> ALBusSeatType {
return .empty
}
// Seat TypespublicenumALBusSeatType: Int{
/// Free to pickcaseempty/// Already sold by woman or mancasesold/// Being selectedcaseselected/// Already sold by womancasesoldWoman/// Already sold by mancasesoldMan/// Not a seat. Can not be able to selectcasenone
}
ALBusSeatView is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].