Skip to content

farhad1985/PersianCalendar

Repository files navigation

PersianCalendar

PersianCalendar written in Swift

Screenshot

now you can use of PersianCalendar in your project

How to install

open your terminal and enter pod install

pod 'PersianCalendar'

In Storyboard

you can use persiancalendar in your storyboard. you should add a view to your viewcontroller and inherit of PersianCalendar

In Code

PersianCaldendar has a Delegate for take your selection Date.

@IBOutlet weak var vwCalendar: PersianCalendarView!
    
override func viewDidLoad() {
  super.viewDidLoad()
        
  vwCalendar.delegate = { calDate in
      print(calDate)
  }
}

and if you want to change font :

vwCalendar.font = UIFont(name: "IRANSansMonoSpacedNum-Light", size: 20)!