Latest 1.0.0
License MIT
Platforms ios 8.0
Dependencies DateToolsSwift





pod ‘BSCalendarView’


Important: the height will be caculate automaticaly, you can just set 0 to initliaze(or set height constraints to 0 in xib/sb)

let calendarView = BSCalendarView(frame: CGRect(x: 0, y: 0, width: view.bounds.size.width, height: 0))

The properties

BSCalendarPreference is a class combine some user preference and UI preference

    public var tintColor: UIColor

    public var isMonthSelectHidden: Bool

    public var monthSelectRowHeight: CGFloat

    public var monthSelectRange: CountableClosedRange<Int>

    /// only change the text
    public var weekTitles: [String]

    public var weekTitlesTextColor: UIColor

    public var weekTitlesFont: UIFont

    public var weekRowHeight: CGFloat

    public var isMarkToday: Bool

    public var isPreviousMonthDaySelectable: Bool

    public var isCurrentMonthDaySelectable: Bool

    public var isNextMonthDaySelectable: Bool

    public var isWeekendDaySelectable: Bool

    public var previousMonthDayTextColor: UIColor

    public var currentMonthDayTextColor: UIColor

    public var nextMonthDayTextColor: UIColor

    public var weekendDayTextColor: UIColor

    public var selectedDayTextColor: UIColor

    public var dayFont: UIFont

    public var dayRowHeight: CGFloat

    public var separatorStyle: BSCalendarView.BSCalendarViewSeparatorStyle

    public var separatorColor: UIColor

The closures

    public var heightDidChangeClosure: ((CGFloat) -> Swift.Void)?

    public var didScrollXFractionClosure: ((CGFloat) -> Swift.Void)?

    public var currentMonthDidChangeClosure: ((Int) -> Swift.Void)?

    public var dayDidSelectedClosure: ((BSCalendarView.BSCalendarDay) -> Swift.Void)?

Latest podspec

    "name": "BSCalendarView",
    "version": "1.0.0",
    "summary": "a horizontal calendar view, with many properties to custom and animate height when scroll",
    "description": "a horizontal calendar view, with many properties to custom and animate height when scroll, cool",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "blurryssky": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "source_files": [
    "exclude_files": "Classes/Exclude",
    "dependencies": {
        "DateToolsSwift": [
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This