Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions JKCalendar.podspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "JKCalendar",
"version": "1.1.4",
"summary": "A calendar view",
"homepage": "https://github.com/JoeCiou/JKCalendar",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"Joe Ciou": "ex780306@gmail.com"
},
"platforms": {
"ios": "9.0"
},
"source": {
"git": "https://github.com/JoeCiou/JKCalendar.git",
"tag": "1.1.0"
},
"source_files": "Sources/*.{swift,h}",
"resources": "Sources/*.{xcassets,xib}",
"requires_arc": true,
"dependencies": {
"JKInfinitePageView": [
"~> 1.1.0"
]
}
}
4 changes: 2 additions & 2 deletions Sources/JKCalendar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class JKCalendar: UIView {
/**
A gregorian calendar
*/
static public let calendar = Calendar(identifier: .gregorian)
static public var calendar = Calendar(identifier: .gregorian)

/**
The object that acts as the delegate of the calendar view.
Expand Down Expand Up @@ -316,7 +316,7 @@ public class JKCalendar: UIView {
}

func setupLabels() {
monthLabel.text = month.name
monthLabel.text = month.name.prefix(1).capitalized + month.name.dropFirst()
yearLabel.text = "\(month.year)"

previousButton.setTitle(isNearbyMonthNameDisplayed ? month.previous.name : nil, for: .normal)
Expand Down
Loading