Skip to content

RPNepaliDatePicker is a nepali date picker which is a simple and fully customizable.

License

Notifications You must be signed in to change notification settings

rameshpjpti/RPNepaliDatePicker

Repository files navigation

RPNepaliDatePicker

RPNepaliDatePicker is a nepali date picker which is a simple and fully customizable written in swift.

Requirements

  • iOS 12.1
  • Xcode 12
  • Swift 5.0

Installation

You can use CocoaPods to install RPNepaliDatePicker by adding it to your Podfile:

  1. pod 'RPNepaliDatePicker'
  2. pod install

Usage

import 'RPNepaliDatePicker'

 class ViewController: UIViewController, RPNepaliDatePickerDelegate { 
  @objc func caleOpenBtnPress(){
        let dateView = CalendarVC()
        dateView.delegate = self
        dateView.headerTintColor = .black
        dateView.headerBackgroundColor = .white
        dateView.headerLabelFont = UIFont.systemFont(ofSize: 17, weight: .medium)
        dateView.headerLabelColor = .black
        dateView.weekLabelFont = UIFont.systemFont(ofSize: 16, weight: .medium)
        dateView.weekLabelColor = .darkGray
        dateView.dayLabelFont = UIFont.systemFont(ofSize: 21, weight: .medium)
        dateView.todayDayLabelColor = .red
        dateView.dayLabelBackgroundColor = .white
        dateView.dayStyle = .roundishSquare
        dateView.show()
    }
    
    func onDatePickSuccess(year: String, month: String, day: String) {
        datelbl.text = String(format: "%@/%@/%@", year, month, day)
    }
}

Feedback

I'd love to hear the feedback. Drop me on email.

License

RPNepaliDatePicker is available under the MIT license. See the LICENSE file for more info.

About

RPNepaliDatePicker is a nepali date picker which is a simple and fully customizable.

Resources

License

Stars

Watchers

Forks

Packages

No packages published