📆 An elegant calendar control for iOS.

Related tags

Calendar Daysquare
Overview

NO LONGER MAINTAINED

Daysquare

An elegant calendar control for iOS.

Version License Platform Carthage compatible

Introduction

Get bored with native silly UIDatePicker? You may have a try on this control. Instead of showing you an awkward wheel, it just presents as a intuitive full-size calendar with a lot of preference properties that you can change.

Screencast

Overview

Set the date

Bold current month

Features

  • Highly customizable.
  • Navigating between arbitrary dates.
  • Automatically adjust view to fit variety sizes.

[Changelog - 6.14]

  • Add: user's calendar events displaying supports.

[Changelog - 6.15]

  • Add: single row mode supports, see singleRowMode property.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Daysquare is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Daysquare', :git => 'https://github.com/unixzii/Daysquare.git'

Also, if you prefer to use Carthage, you can add the following line to your Cartfile:

github "unixzii/Daysquare"

Guide

Try the demo project, it's very easy to use. Daysquare follows the target-action pattern, just like the native UIDatePicker class.

PAY ATTENTION
After changing any appearance property, you have the responsibility to call reloadViewAnimated: method to update the view.

Enjoy it!!

License

The project is available under the MIT license. See the LICENSE file for more info.

Comments
  • cocopods problem

    cocopods problem

    use this instruction pod 'Daysquare', :git => 'https://github.com/unixzii/Daysquare.git' the result is [!] Unable to satisfy the following requirements:

    • Daysquare (fromhttps://github.com/unixzii/Daysquare.git) required by Podfile

    Specs satisfying the Daysquare (fromhttps://github.com/unixzii/Daysquare.git) dependency were found, but they required a higher minimum deployment target. are you sure your pod command is right?

    wontfix 
    opened by lee727n 3
  • Fix bug and optimized logic

    Fix bug and optimized logic

    修复了两个bug,另外还有优化了一个单行模式下的跳转逻辑。

    在代码中直接搜索 Rakuyo 可以看到我的修改。

    1. 修复 在单行模式下,选中某一个日期后切换周,再次选中任意一个日期后,日期小消失的bug
    2. 修复 在单行模式下初始化时,默认显示的不是当前日期行的bug。
    3. 优化 在单行模式下的跳转逻辑。切换周时,如果下/上一周属于下/上月份,则直接跳到下/上月份。
    opened by rakuyoMo 1
  • How to solve the error Invalid Month 0

    How to solve the error Invalid Month 0

    { super.viewDidLoad()

        calendarFromDateArr2 =  ["2017-11-05T07:41:00", "2017-10-30T11:23:00", "2017-10-30T11:48:00", "2017-11-10T00:00:00", "2017-11-13T19:43:00", "2017-12-01T00:00:00", "2017-12-31T00:00:00"]
        
        
        for calendardate in calendarFromDateArr2
        
        {
            
            
            print("date :\(calendardate)")
            
            let dateFormatter = DateFormatter()
            
            dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
            dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
            
            let date = dateFormatter.date(from: calendardate)
            
            print(date)
            
            
            self.calendarView.selectedDate = date
        
            
            //return
            
            
        }
        
        
    }
    
    help wanted 
    opened by gopalsunkpo 1
  • 在iOS8上会闪退

    在iOS8上会闪退

    在iOS8上运行闪退,报错信息为 image ,主要原因是weekHeaderView使用的是从iOS9才有的UIStackView,所以在低于iOS9的设备上运行是,创建的这个weekHeaderView是nil,导致

    [self addConstraint:[NSLayoutConstraint constraintWithItem:self.weekHeaderView
                                                         attribute:NSLayoutAttributeTop
                                                         relatedBy:NSLayoutRelationEqual
                                                            toItem:self.navigationBar
                                                         attribute:NSLayoutAttributeBottom
                                                        multiplier:1.0
                                                          constant:0]];
    

    中的self.weekHeaderView为nil。建议换成FDStackView,可以支持到6+

    opened by lovelytomy 0
  • no shared framework schemes

    no shared framework schemes

    Hey, i am trying to use carthage to get this library but i keep getting the error below.

    *** Skipped building Daysquare due to the error: Dependency "Daysquare" has no shared framework schemes

    If you believe this to be an error, please file an issue with the maintainers at Optional("https://github.com/unixzii/Daysquare/issues/new")

    opened by astubiggi 0
Owner
Cyandev
An initiate of programming.
Cyandev
📆 An elegant calendar control for iOS.

NO LONGER MAINTAINED Daysquare An elegant calendar control for iOS. Introduction Get bored with native silly UIDatePicker? You may have a try on this

Cyandev 701 Sep 9, 2022
A declarative, performant, iOS calendar UI component that supports use cases ranging from simple date pickers all the way up to fully-featured calendar apps.

HorizonCalendar A declarative, performant, calendar UI component that supports use cases ranging from simple date pickers all the way up to fully-feat

Airbnb 2.2k Jan 4, 2023
Simple customizable calendar component in Swift :calendar:

Koyomi Koyomi is a simple calendar view framework for iOS, written in Swift ?? Content Features Demo App Usage introduction : Change displayed month,

Shohei Yokoyama 741 Dec 24, 2022
Malendar is a personal calendar app that connects to your default calendar and lets you add/delete events

Malendar is a personal calendar app that connects to your default calendar and lets you add/delete events. It will gather events from your default iOS calendar.

Chase 194 Jan 4, 2023
The elegant full screen calendar missed in SwiftUI.

ElegantCalendar ElegantCalendar is an efficient and customizable full screen calendar written in SwiftUI. ElegantTimeline - Shows what's possible usin

Kevin Li 553 Dec 27, 2022
A calendar control for iOS written in swift with mvvm pattern

ASCalendar try it on appetize Installation CocoaPods You can use CocoaPods to install ASCalendar by adding it to your Podfile: platform :ios, '8.0' us

Alberto Scampini 192 Jun 26, 2022
Calendar View - It's lightweight and simple control with supporting Locale and CalendarIdentifier.

iOS Calendar It's lightweight and simple control with supporting Locale and CalendarIdentifier. There're samples for iPhone and iPad, and also with us

Maksym Bilan 159 Dec 22, 2022
📅 Calendar for iOS, iPadOS and macOS in Swift

CalendarKit CalendarKit is a Swift calendar UI library for iOS, iPadOS and Mac Catalyst. It looks similar to the Apple Calendar app out-of-the-box, wh

Richard Topchii 2.2k Jan 5, 2023
An Easy to Use Calendar for iOS (Swift 5.0)

This is an easy to use, "just drag and drop it in your code" type of calendar for iOS. It supports both vertical and horizontal scrolling, as well as

Michael Michailidis 525 Dec 23, 2022
SwiftUI Simple Calendar / Date Picker for iOS

RKCalendar RKCalendar is a SwiftUI Calendar / Date Picker for iOS. Features include: minimum and maximum calendar dates selectable, single date select

null 453 Dec 28, 2022
A custom visual calendar for iOS 8+ written in Swift (>= 4.0).

Overview Screenshots GIF Demo Installation Usage Architecture Version matrix Advanced API For contributors Screenshots GIF Demo Installation CocoaPods

null 3.5k Dec 24, 2022
iOS 7+ Calendar (Date Picker) with Infinite Scrolling.

RSDayFlow iOS 7 Calendar with Infinite Scrolling. Only need 4 lines of code to set up. RSDayFlow is a slim fork of DayFlow with updates and extensions

Ruslan Skorb 844 Sep 14, 2022
An availability calendar implementation for iOS

NWCalendarView NWCalendar View is an iOS control that displays a calendar. It is perfect for appointment or availibilty selection. It allows for selec

Nicholas Wargnier 60 May 27, 2021
A customizable calendar view for iOS.

JTCalendar JTCalendar is an easily customizable calendar control for iOS. Installation With CocoaPods, add this line to your Podfile. pod 'JTCalendar'

Jonathan Vukovich-Tribouharet 2.8k Dec 27, 2022
An open source calendar framework for iOS, with support for customization, IBDesignable, Autolayout, and more.

About MBCalendarKit is a calendar control written in Objective-C with modern best practices and Swift interoperability in mind. It offers a flexible c

Moshe 563 Oct 27, 2022
A fully customizable iOS calendar library, compatible with Objective-C and Swift

Table of contents Screenshots Installation Pre-knowledge Support Contact Screenshots iPhone iPad Safe Orientation Today Extension iOS8/9 iOS10 Interac

Wenchao Ding 10.2k Jan 2, 2023
A library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.

A library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.

jasu 45 Dec 20, 2022
Simplifies iOS user permission requests (location, push notifications, camera, contacts, calendar, photos, etc).

ICanHas Swift 4 library that simplifies iOS user permission requests (push notifications, location, camera, photo library, contacts, calendar). Instal

Adolfo Rodriguez 91 Jun 2, 2022
Anime Calendar's iOS App - Schedule your seasonal anime to watch!

?? Anime Calendar Anime Calendar's iOS App - Schedule your seasonal anime to watch! Currently in progress UI Uses Xibs and some programmatic views. De

Leonardo 11 Jan 1, 2023