All Projects → applogistdev → ALBusSeatView

applogistdev / ALBusSeatView

Licence: MIT license
Bus Seat View Selection

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ALBusSeatView

Rxbus2
RxJava2 based bus with queuing (e.g. lifecycle based) support
Stars: ✭ 116 (+22.11%)
Mutual labels:  bus
Mediator.net
A simple mediator for .Net for sending command, publishing event and request response with pipelines supported
Stars: ✭ 237 (+149.47%)
Mutual labels:  bus
european-transport-operators
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.
Stars: ✭ 47 (-50.53%)
Mutual labels:  bus
Aaframework
AA.Framework is built on the popular open source class library of NET Core
Stars: ✭ 128 (+34.74%)
Mutual labels:  bus
Zebus
A lightweight Peer to Peer Service Bus
Stars: ✭ 222 (+133.68%)
Mutual labels:  bus
can-prog
Command-line tool to flashing devices by CAN-BUS
Stars: ✭ 66 (-30.53%)
Mutual labels:  bus
Vuedals
Vue modals with a single component
Stars: ✭ 102 (+7.37%)
Mutual labels:  bus
StaticBus
🚌 A static bus use in modules.
Stars: ✭ 15 (-84.21%)
Mutual labels:  bus
Busrouter Sg
BusRouter SG: Singapore Bus Routes Explorer
Stars: ✭ 238 (+150.53%)
Mutual labels:  bus
J1939-Framework
Framework to work with J1939 Frames used in CAN bus in bus, car and trucks industries
Stars: ✭ 123 (+29.47%)
Mutual labels:  bus
Springcloud Learning
学习Spring Cloud框架的总结,使用的是最新的Hoxton版本。主要对包括但不限于Eureka、Ribbon、Hystrix、Zuul、Gateway、Security、Bus、OpenFeign等核心组件的用法进行详细介绍。
Stars: ✭ 129 (+35.79%)
Mutual labels:  bus
Lightbus
RPC & event framework for Python 3
Stars: ✭ 149 (+56.84%)
Mutual labels:  bus
gtfs-osm-sync
Synchronizes public transportation data in GTFS format with OpenStreetMap.org
Stars: ✭ 85 (-10.53%)
Mutual labels:  bus
Slimmessagebus
Lightweight message bus interface for .NET (pub/sub and request-response) with transport plugins for popular message brokers.
Stars: ✭ 120 (+26.32%)
Mutual labels:  bus
web
The SeAT Web Interface
Stars: ✭ 14 (-85.26%)
Mutual labels:  seat
Busbookingui Android
Check out the new style for App Design aims for the Bus Booking Service...😉😀😁😎
Stars: ✭ 105 (+10.53%)
Mutual labels:  bus
Bus
Bus 是一个基础框架、服务套件,它基于Java8编写,参考、借鉴了大量已有框架、组件的设计,可以作为后端服务的开发基础中间件。代码简洁,架构清晰,非常适合学习使用。
Stars: ✭ 253 (+166.32%)
Mutual labels:  bus
psr-container-messenger
Message bus and queue for Mezzio with Symfony Messenger + Enqueue
Stars: ✭ 24 (-74.74%)
Mutual labels:  bus
WP-Hotel-Booking
The most powerful and easy-to-use Hotel Booking Manager to help you create, manage a booking and reservation system for your hotel WordPress website.
Stars: ✭ 27 (-71.58%)
Mutual labels:  reservation
mib2std-toolbox
Trying to hack VW Discover Media / Composition Media MIB2 infotainment
Stars: ✭ 58 (-38.95%)
Mutual labels:  seat

ALBusSeatView 💺

Version License Platform

Example

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)

//ALBusSeatViewDataSource

func seatView(_ seatView: ALBusSeatView, numberOfSeatInSection section: Int) -> Int {
     return 43 // Total seat count
}

func seatView(_ seatView: ALBusSeatView, seatNumberForIndex indexPath: IndexPath) -> String {
    return "10" // Seat Number
}

func seatView(_ seatView: ALBusSeatView,
              seatTypeForIndex indexPath: IndexPath) -> ALBusSeatType {
        
    return .empty
}


// Seat Types

public enum ALBusSeatType: Int {
    /// Free to pick
    case empty
    /// Already sold by woman or man
    case sold
    /// Being selected
    case selected
    /// Already sold by woman
    case soldWoman
    /// Already sold by man
    case soldMan
    /// Not a seat. Can not be able to select
    case none
}

Documentation

Config (ALBusSeatViewConfig)

Layout

Param Desc Default Type
leftHandDrivePosition Left drive position status True Bool
marginBetweenSeats Margin between seats 5.0 CGFloat

Seat

Param Desc Default Type
seatEmptyBGColor Empty seat color .white UIColor
seatSoldBGColor Seat color purchased by woman or man. (Common seat) .gray UIColor
seatSelectedBGColor Selected seat color .green UIColor
seatSoldWomanBGColor Seat color purchased by woman .red UIColor
seatSoldManBGColor Seat color purchased by man .blue UIColor
seatCornerRadius Seat corner radius 8.0 CGFloat
seatBorderColor Seat border color .clear UIColor
seatBorderWidth Seat border width 0 CGFloat
seatShadowColor Seat shadow color .lightGray UIColor
seatShadowRadius Seat shadow radius 5.0 CGFloat
seatShadowSize Seat shadow size 1,1 CGSize
seatShadowOpacity Seat shadow opacity 0.7 Float
seatRemoveImage The remove button image for selected seat nil UIImage?
seatNumberFont Seat number label font .system(15) UIFont
seatNumberSelectedFont Selected seat number label font .systemBold(15) UIFont
seatNumberColor Seat number label color .black UIColor
seatNumberSelectedColor Selected seat number label color .white UIColor

Hall

Param Desc Default Type
centerHallHeight Bus hall height 20 CGFloat
centerHallInfoText Hall information label text "" String
centerHallInfoTextColor Hall information label text color .black UIColor
centerHallInfoTextFont Hall information label text font .system(12) UIFont

Bus Front Section

Param Desc Default Type
busFrontImage Bus front image nil UIImage?
busFrontImageWidth Bus front image width 50 CGFloat

Bus Floor Section

Param Desc Default Type
floorSeperatorWidth Floor section width 50 CGFloat
floorSeperatorImage Floor section image nil UIImage?

Gender Tooltip

Param Desc Default Type
tooltipText Gender selection tooltip title "Select Gender" String

Author

sonifex, [email protected]

License

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].