Customizable Calendar SwiftUI Library

Overview

JHCalendar

SwiftUI Customizable Calendar Library

Overview

SwiftUI에서 사용할 수 있는 커스텀 가능한 캘린더 라이브러리입니다.

기본 사용

    import SwiftUI

    struct ContentView : View {

        @StateObject var calendarManager = CalendarManger(start: .startDefault, 
                                                          end: .endDefault, 
                                                          point: .currentDefault)

        var body : some View {
            JHCalendar(content: { component in 
                DefaultCalendarDayView(component: component)
            })
            .environmentObject(calendarManager)
        }
    }

가이드라인

  • CalendarManager 선언하기

    • CalendarManager는 캘린더의 데이터를 관리하는 ObservableObject를 채택한 클래스입니다. (필수)
        CalendarManger(start: .startDefault, end: .endDefault, point: .currentDefault)
    • start : 캘린더의 첫 페이지 (startDefault는 현재날짜를 기준으로부터 2년 전을 첫 페이지로 합니다.)
    • end : 캘린더의 마지막 페이지 (endDefault는 현재날짜를 기준으로부터 2년 후를 마지막 페이지로 합니다.)
    • point : 캘린더 시작 위치 (currentDefault는 현재날짜를 캘린더 시작위치로 합니다.)
  • JHCalendar 선언하기

    • 캘린더뷰입니다.
        JHCalendar(content: { component in 
            DefaultCalendarDayView(component: component)
        })
    • content : 캘린더의 요일을 표시하는데 쓰일 뷰입니다. (사전정의된 DefaultCalendarDayView를 이용할 수 있습니다.)

    • component : 표시될 요일에 대한 구체적인 정보가 담긴 구조체입니다.

          struct CalendarComponent {
              var year : Int
              var month : Int
              var day : Int
          }
  • EnvironmentKey

    • 캘린더의 세팅값을 변경할 수 있는 EnvironmentKey 입니다.
        JHCalendar(content: { component in 
            DefaultCalendarDayView(component: component)
        })
        .environment(\.calendarHeight, 60)
        .environment(\.calendarWeekSymbols, ["월요일","화요일","수요일","목요일","금요일","토요일","일요일"])
        .environment(\.calendarShowTitle, true)
        .environment(\.calendarWeekFont, .callout)
        .environment(\.calendarWeekColor, .secondary)
    • calendarHeight : 캘린더 요일셀의 기본 높이입니다. 기본값은 50 입니다.

    • calendarWeekSymbols : 캘린더의 주일을 나타내는 심볼입니다. 기본적으로 지역화된 요일값이 들어갑니다.

    • calendarShowTitle : 캘린더의 년/월 타이틀 표시여부

    • calendarWeekFont : 캘린더의 표시된 주일 폰트

    • calendarWeekColor : 캘린더에 표시된 주일 색상

You might also like...
RCalendarPicker A date picker control, Calendar calendar control, select control, calendar, date selection, the clock selection control.
RCalendarPicker A date picker control, Calendar calendar control, select control, calendar, date selection, the clock selection control.

RCalendarPicker RCalendarPicker Calendar calendar control, select control, calendar, date selection, the clock selection control. 日历控件 ,日历选择控件,日历,日期选择

Simple customizable calendar component in Swift :calendar:
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,

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.
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

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

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.

Customizable Calendar SwiftUI Library

SwiftUI Customizable Calendar Library

A fully customizable iOS calendar library, compatible with Objective-C and Swift
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

A customizable swiftui calendar
A customizable swiftui calendar

Description not available. Installation From Xcode 11, you can use Swift Package Manager to add Kingfisher to your project. Select File Swift Packag

A fully customizable calendar view acting as a date range picker
A fully customizable calendar view acting as a date range picker

Demo Installation CocoaPods With CocoaPods you can simply add GLCalendarView in your Podfile: pod "GLCalendarView", "~ 1.0.0" Source File You can co

A customizable calendar view for iOS.
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'

SwiftMoment - A time and calendar manipulation library for iOS 9+, macOS 10.11+, tvOS 9+, watchOS 2+ written in Swift 4.

SwiftMoment This framework is inspired by Moment.js. Its objectives are the following: Simplify the manipulation and readability of date and interval

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.

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

Full featured lunar calendar library
Full featured lunar calendar library

LunarCore 小历(iOS & OS X)的农历核心部分。 何为小历 小历是一个简洁的农历 app,目前支持 iOS & OS X 两端,iOS 端多次被 App Store 官方推荐。 前世今生 LunarCore 最早来自于一个 JavaScript 编写的农历库:LunarCalenda

The elegant full screen calendar missed in SwiftUI.
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

SwiftUI Simple Calendar / Date Picker for iOS
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

An easy to use SwiftUI date picker for Shamsi (Persian) calendar
An easy to use SwiftUI date picker for Shamsi (Persian) calendar

ShamsiDatePicker An easy-to-use SwiftUI iOS/watchOS date picker for Shamsi (Persian) calendar. Features Pure (100%) SwiftUI implementation Full suppor

SwiftUICalendar - SwiftUI simple calendar
SwiftUICalendar - SwiftUI simple calendar

SwiftUICalendar Installation CocoaPods pod 'SwiftUICalendar' import import SwiftUICalendar Features Infinite scroll Support horizontal and vertical sc

Clendar - universal calendar app. Written in SwiftUI. Available on App Store. MIT License.

Clendar - minimal calendar Minimal Calendar & Widgets Landing Page About This project is started out as an UIKit base app for me to learn new WWDC fea

A SwiftUI calendar view that allows month switching and date picking.
A SwiftUI calendar view that allows month switching and date picking.

Selectable Calendar View A SwiftUI calendar view that allows month switching and date picking. Usage You can simply add this repository to your projec

Time is a Swift package that makes dealing with calendar values a natural and straight-forward process.

Time Time is a Swift package that makes dealing with calendar values a natural and straight-forward process. Working with calendars can be extremely c

Releases(2.0.0)
Owner
LeeProgrammer
WWDC2021 Swift Student Challenge Winner
LeeProgrammer
Time is a Swift package that makes dealing with calendar values a natural and straight-forward process.

Time Time is a Swift package that makes dealing with calendar values a natural and straight-forward process. Working with calendars can be extremely c

Dave DeLong 2k Dec 31, 2022
A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats.

ISO 8601: The only date format worth using Obligatory relevant xkcd: How to use this code in your program Add the source files to your project. Parsin

Peter Hosey 601 Sep 4, 2022
A customizable date picker for watchOS and SwiftUI.

Watch Date Picker A customizable date picker for watchOS and SwiftUI. Installation .package(url: "https://github.com/freyaariel/watch-date-picker.git"

Freya Ariel 30 Dec 4, 2022
SwiftUI library to display a clock. You can move the arms to change the time, change the style of the clock and customise some configurations.

SwiftClockUI Clock UI for SwiftUI This library has been tested ✅ ?? macOS Catalina 10.15.3 ✅ ?? macOS Big Sur 11.6 ✅ ?? iOS 13 ✅ ?? iOS 14 ✅ ?? iOS 15

Renaud Jenny 239 Dec 29, 2022
NTP library for Swift and Objective-C. Get the true time impervious to device clock changes.

TrueTime for Swift Make sure to check out our counterpart too: TrueTime, an NTP library for Android. NTP client for Swift. Calculate the time "now" im

Instacart 530 Jan 4, 2023
Elegant NTP date library in Swift

Kronos is an NTP client library written in Swift. It supports sub-seconds precision and provides a stable monotonic clock that won't be affected by ch

Mobile Native Foundation 575 Dec 23, 2022
Building a better date/time library for Swift

Time Time is a Swift package that makes dealing with calendar values a natural and straight-forward process. Working with calendars can be extremely c

Dave DeLong 2k Dec 31, 2022
A Swift micro library for generating Sunrise and Sunset times.

Solar A Swift helper for generating Sunrise and Sunset times. Solar performs its calculations locally using an algorithm from the United States Naval

Chris Howell 493 Dec 25, 2022
Timekeeper is an easy-to-use time measurement library written in Swift, with support for iOS, tvOS, watchOS and macOS.

Timekeeper is an easy-to-use time measurement library written in Swift, with support for iOS, tvOS, watchOS and macOS. Installation Timekee

Andreas Pfurtscheller 1 Oct 18, 2021
UmaBasicAlertKit is a Swift UI library for iOS

UmaBasicAlertKit UmaBasicAlertKit is a Swift UI library for iOS. This library al

UmaKim 3 Jan 28, 2022