Latest 0.1.1
Homepage https://github.com/farhad1985/PersianCalendar
License MIT
Platforms ios 11.0
Authors

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)!

Latest podspec

{
    "name": "PersianCalendar",
    "version": "0.1.1",
    "summary": "PersianCalendar is a Calendar. by : farhad faramarzi",
    "homepage": "https://github.com/farhad1985/PersianCalendar",
    "authors": {
        "Farhad Faramarzi": "[email protected]"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "source": {
        "git": "https://github.com/farhad1985/PersianCalendar.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": [
        "PersianCalendar/*",
        "PersianCalendar/**/*.{swift,h,m}"
    ],
    "exclude_files": "PersianCalendar/**/*.plist",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This