Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.02 KB

README.md

File metadata and controls

61 lines (44 loc) · 2.02 KB

ParkingSignView

Version License Platform

ParkingSingView is an iOS swift library which return street parking sign view for Melbourne style. It is extremely flexible and easy to implement.

Hour Minute Two Conditions

Features

  • Flexible UI
  • Customizable
  • Easy to use

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

ParkingSignView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ParkingSignView'

How to use

Initialization

let signView = ParkingSignView(duration: 1, unit: .hour)
signView.center = self.view.center
self.view.addSubview(signView)

Change parking duration

signView.duration = 3

Change parking unit

signView.unit = .hour //For hour format
signView.unit = .minute //For minute format

Show meter label

signView.isFree = false //false to show, true to hide

Author

KPR7168, pich_ratanak@ymail.com

License

ParkingSignView is available under the MIT license. See the LICENSE file for more info. 🇰🇭