Skip to content

Commit

Permalink
Update HJCalendarView
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyun-je committed Sep 7, 2020
1 parent 6582dde commit 3b63365
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 196 deletions.
4 changes: 2 additions & 2 deletions HJCalendarView/HJCalendar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ struct HJCalendar {



func nextMonthCalendar() -> HJCalendar {
func nextMonth() -> HJCalendar {
var periodComponents = DateComponents()
periodComponents.month = 1

return HJCalendar(date: HJCalendar.calendar.date(byAdding: periodComponents, to: date)!)
}

func previousMonthCalendar() -> HJCalendar {
func previousMonth() -> HJCalendar {
var periodComponents = DateComponents()
periodComponents.month = -1

Expand Down
Loading

0 comments on commit 3b63365

Please sign in to comment.