[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6958":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":9,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},6958,"CVCalendar","CVCalendar\u002FCVCalendar","A custom visual calendar for iOS 8+ written in Swift (>= 4.0).","",null,"Swift",3478,602,95,30,0,1,30.34,"MIT License",false,"master",true,[23,24,25,26,27,28,29,30,31,32],"calendar","calendar-component","calendar-view","calendarview","custom-view","cvcalendar","ios","swift","swift3","swift4","2026-06-12 02:01:32","\u003Cp align=\"center\">\n  \u003Cimg src =\"https:\u002F\u002Fraw.githubusercontent.com\u002FCVCalendar\u002FCVCalendar\u002Fmaster\u002FScreenshots\u002FCVCalendarIcon.png\" \u002F>\n\u003C\u002Fp>\n\n![pod](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FCVCalendar.svg)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fl\u002FCVCalendar.svg)](http:\u002F\u002Fcocoapods.org\u002Fpods\u002FCVCalendar)\n[![Build Status](https:\u002F\u002Ftravis-ci.com\u002FCVCalendar\u002FCVCalendar.svg?branch=master)](https:\u002F\u002Ftravis-ci.com\u002FCVCalendar\u002FCVCalendar)\n[![Twitter](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftwitter-@elsesiy-blue.svg)](http:\u002F\u002Ftwitter.com\u002Felsesiy)\n\nOverview\n==========\n* [Screenshots](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#screenshots)\n* [GIF Demo](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#gif-demo)\n* [Installation](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#installation)\n* [Usage](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#usage)\n* [Architecture](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#architecture)\n* [Version matrix](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#version-matrix)\n* [Advanced API](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#advanced-api)\n* [For contributors](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar#for-contributors)\n\nScreenshots\n==========\n\n\u003Cp align=\"center\">\n  \u003Cimg src =\"https:\u002F\u002Fraw.githubusercontent.com\u002FCVCalendar\u002FCVCalendar\u002Fmaster\u002FScreenshots\u002FCVCalendar_White.png\" \u002F>\n\u003C\u002Fp>\n\nGIF Demo\n==========\n\n\u003Cp align=\"center\">\n  \u003Cimg src =\"https:\u002F\u002Fraw.githubusercontent.com\u002FCVCalendar\u002FCVCalendar\u002Fmaster\u002FScreenshots\u002FDemo_grey.gif\" \u002F>\n\u003C\u002Fp>\n\nInstallation\n==========\n\u003Ch3> CocoaPods \u003C\u002Fh3>\n\n```ruby\npod 'CVCalendar', '~> 1.7.0'\n```\n\nUsage\n==========\n\nUsing CVCalendar isn't difficult at all. There are two actual ways of implementing it in your project:\n* Storyboard setup\n* Manual setup\n\nSo let's get started.\n\nWarning! Since 1.1.1 version CVCalendar requires an implementation of two protocols **CVCalendarViewDelegate** and **CVCalendarMenuViewDelegate**, please implement both. Also note, they both have a method with the same signature which means you need to impement it only once. Take a look at the [Demo](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar\u002Ftree\u002Fmaster\u002FCVCalendar) project for more info.\n\n\u003Ch3> Storyboard Setup \u003C\u002Fh3>\n\n\u003Ch4>Basic setup.\u003C\u002Fh4>\n\nFirst, you have to integrate **CVCalendar** with your project through **CocoaPods**.\n\nNow you're about to add 2 UIViews to your Storyboard as it shown in the picture below.  \n![alt tag](https:\u002F\u002Fraw.githubusercontent.com\u002FCVCalendar\u002FCVCalendar\u002Fmaster\u002FScreenshots\u002FPic2.png)\n\nDon't forget to add 2 outlets into your code.\n```swift\n    @IBOutlet weak var menuView: CVCalendarMenuView!\n    @IBOutlet weak var calendarView: CVCalendarView!\n```\n\nTwo views are representing ultimately a MenuView and a CalendarView so they should have corresponding classes. To change their classes go to \u003Cb>Identity Inspector\u003C\u002Fb> and set custom classes. When it's done, you'll see in the dock panel something similar to the picture below.  (Blue UIView -> CVCalendarView, Green UIView -> CVCalendarMenuView)\n\n![alt tag](https:\u002F\u002Fraw.githubusercontent.com\u002FCVCalendar\u002FCVCalendar\u002Fmaster\u002FScreenshots\u002FPic3.png)\n\n> \u003Cb>NOTE\u003C\u002Fb>: Please note that both CalendarView and MenuView are calculating their content's frames depending on their own ones. So in your projects you may be editing the size of initial UIViews in the storyboard to reach an optimal content size.\n\n\u003Ch5> Important note. \u003C\u002Fh5>\nBefore we move to setting up delegates for customization stuff, you should know that CalendarView's initialization is devided by 2 parts:\n* On Init.\n* On Layout.\n\nAs well as most of the developers are using AutoLayout feature UIView's size in the beginning of initialization does not match the one on UIView's appearing. Thus we have either to initialize ContentView with MonthViews and all the appropriate stuff on UIView's appearing or initialize stuff as UIView's being initialized and then simply update frames. The first option doesn't work since there will be a flash effect (the initialization will be finished after your UIView appeared) according to what the CVCalendar has 2 parts of creating.\n\nSince CVCalendarView and CVCalendarMenuView will be created automatically all you have to do is this (in the ViewController that contains CVCalendar).\n\n````swift\n    override func viewDidLayoutSubviews() {\n        super.viewDidLayoutSubviews()\n\n        menuView.commitMenuViewUpdate()\n        calendarView.commitCalendarViewUpdate()\n    }\n````\n\n\u003Ch4>Delegates Setup (Customization).\u003C\u002Fh4>\n\nCVCalendar requires to implement two protocols. They are \u003Cb>CVCalendarViewDelegate\u003C\u002Fb> and \u003Cb>CVCalendarMenuViewDelegate\u003C\u002Fb>. Note that the last one has exactly the same named method as the first one declares which means you have to implement only required methods in \u003Cb>CVCalendarViewDelegate\u003C\u002Fb> and set your controller as a delegate implementing both protocols.\n\nThese protocols stand for getting the data for building CVCalendarView and CVCalendarMenuView. So do not forget to implement them.\n\n[\u003Cb>API Page\u003C\u002Fb>](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar\u002Fwiki)\n\nA long story in short or customizable properties:\n* Showing weekdays out\n* Moving dot markers on highlighting\n* Showing dot markers on a specific day view\n* Dot marker's color, offset and size\n* Space between week views and day views\n* Day view's label properties (color, background, alpha + different states (normal\u002Fhighlighted))\n\nBehavior:\n* Day view selection\n* Presented date update\n* Animations on (de)selecting day views\n\nFinally we're going to customize properties. To make this possible you have to implement approptiate protocols. (You can see presented protocols and short descriptions in the \u003Cb>Architecture Section\u003C\u002Fb>). Open your Storyboard and do a right-click on CVCalendarView, you'll see the window with outlets and there are a few ones we actually need. Take a look at the picture to make sure you're doing everything properly.\n\n![alt tag](https:\u002F\u002Fraw.githubusercontent.com\u002FCVCalendar\u002FCVCalendar\u002Fmaster\u002FScreenshots\u002FPic4.png)\n\nNow depending on what you'd like to change you should implement a particular protocol providing methods for customizing that stuff. For delegates' API description take a look at [\u003Cb>this page\u003C\u002Fb>]\n(https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar\u002Fwiki).\n\nDo NOT forget to connect a particular outlet with your ViewController if you're implementing its protocol.\n\n> \u003Cb>NOTE\u003C\u002Fb>: CVCalendar defines default values for all the customizable properties (i.e. for ones defined in the presented protocols). Thus far if you don't implement protocols yourself the calendar will behave as it was initially designed.\n\n\u003Ch3> Manual Setup \u003C\u002Fh3>\n\nIf for some reason you'd like to setup **CVCalendar** manually you have to do the following steps.\n\nInitialize **CVCalendarView** with either `init` or `init:frame` methods. I suggest to do it in `viewDidLoad` method. Do NOT put initialization in `viewDidAppear:` or `viewWillAppear:` methods! Then setup delegates if you're going to customize options.\n\n> Note that \u003Cb>CVCalendarAppearanceDelegate\u003C\u002Fb> should be set before \u003Cb>CVCalendarViewDelegate\u003C\u002Fb> so your changes can be applied.\n\nFor **CVCalendarMenuView** you simply initialize it as well as CVCalendarView and it requires to implement **CVCalendarMenuViewDelegate** protocol.\n\nHow it should look like.\n\n```swift\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        \u002F\u002F CVCalendarMenuView initialization with frame\n        self.menuView = CVCalendarMenuView(frame: CGRectMake(0, 0, 300, 15))\n\n        \u002F\u002F CVCalendarView initialization with frame\n        self.calendarView = CVCalendarView(frame: CGRectMake(0, 20, 300, 450))\n\n        \u002F\u002F Appearance delegate [Unnecessary]\n        self.calendarView.calendarAppearanceDelegate = self\n\n        \u002F\u002F Animator delegate [Unnecessary]\n        self.calendarView.animatorDelegate = self\n\n        \u002F\u002F Menu delegate [Required]\n        self.menuView.menuViewDelegate = self\n\n        \u002F\u002F Calendar delegate [Required]\n        self.calendarView.calendarDelegate = self\n    }\n```\n\nAnd do not forget to commit updates on `viewDidLayoutSubviews` method.\n\n```swift\n    override func viewDidLayoutSubviews() {\n        super.viewDidLayoutSubviews()\n\n        \u002F\u002F Commit frames' updates\n        self.menuView.commitMenuViewUpdate()\n        self.calendarView.commitCalendarViewUpdate()\n    }\n```\n\nHere you go.\n\n[Architecture](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar\u002Fwiki\u002FArchitecture)\n==========\n\nVersion matrix\n==========\n**CVCalendar** adapts the newest swift language syntax but keeps revisions as stated below:\n\n| CVCalendar | Swift    | Xcode          | Release Notes |\n| ---------- | -------- | -------------- | ------------  | \n|     1.6    | 4.x      | 8.x, 9.x, 10.x |     HEAD      |\n|     1.5    | 3.x      | 8.x, 9.x       | swift3-branch |\n|     1.4    | 3.x      | 7.x, 8.0       |  Unsupported  |\n|     1.3    | 2.x      | 7.x            |  Unsupported  |\n|     1.2    | 1.x      | 7.x            |  Unsupported  |\n\n[Advanced API](https:\u002F\u002Fgithub.com\u002FCVCalendar\u002FCVCalendar\u002Fwiki\u002FAdvanced-API)\n==========\n\nFor contributors\n==========\nIf you've any remarks please feel free to open up an issue or submit PRs. Please make sure to adhere to the provided issue template while doing so. Also note that the Demo project is supposed to test the changes on CVCalendar. If you've committed any, do not forget to check if everything compiles and works as intended and update the docs accordingly. Thanks :+1:\n","CVCalendar 是一个为 iOS 8 及以上版本设计的自定义视觉日历组件，使用 Swift（>= 4.0）编写。其核心功能包括高度可定制的日历视图和菜单视图，支持通过 Storyboard 或手动设置进行集成，并要求实现 CVCalendarViewDelegate 和 CVCalendarMenuViewDelegate 协议以完成基本配置。该项目采用 MIT 许可证，适合需要在 iOS 应用中添加美观且功能丰富的日历界面的开发者使用，尤其适用于那些希望提供用户友好型日期选择体验的应用场景。",2,"2026-06-11 03:09:53","top_language"]