All Projects → AlbertMontserrat → Amgcalendarmanager

AlbertMontserrat / Amgcalendarmanager

Licence: mit
EventKit helper for Swift 3

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Amgcalendarmanager

Knphotobrowser
📷 图片 || 视频 浏览器(本地和网络) , UIViewController + CollectionView , 完美适配 iPhone 以及 iPad ,屏幕旋转功能 , 适配SDWebImage 5.0
Stars: ✭ 296 (+920.69%)
Mutual labels:  pod
Badgehub
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
Stars: ✭ 592 (+1941.38%)
Mutual labels:  pod
Openebs
Leading Open Source Container Attached Storage, built using Cloud Native Architecture, simplifies running Stateful Applications on Kubernetes.
Stars: ✭ 7,277 (+24993.1%)
Mutual labels:  pod
Kube Metrics Adapter
General purpose metrics adapter for Kubernetes HPA metrics
Stars: ✭ 309 (+965.52%)
Mutual labels:  pod
Pysearch
🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
Stars: ✭ 3,816 (+13058.62%)
Mutual labels:  pod
Kydrawercontroller
Side Drawer Navigation Controller similar to Android
Stars: ✭ 632 (+2079.31%)
Mutual labels:  pod
Swiftprogresshud
📦 SwiftProgressHUD is a user-friendly pure swift HUD. 支持Cocoapods 及 Carthage
Stars: ✭ 290 (+900%)
Mutual labels:  pod
Openshift Psap
Example roles and yaml files for performance-sensitive applications running on OpenShift
Stars: ✭ 20 (-31.03%)
Mutual labels:  pod
Xhpaykit
🔥不用官方SDK实现微信支付、支付宝支付
Stars: ✭ 544 (+1775.86%)
Mutual labels:  pod
Gqanimation
几种常见的动画,如晴天,雨天,多云,雷阵雨,二维码扫描,脉冲等
Stars: ✭ 19 (-34.48%)
Mutual labels:  pod
Kubectl Plugins
A Collection of Plugins for kubectl Integration (exec as any user, context switching, etc).
Stars: ✭ 340 (+1072.41%)
Mutual labels:  pod
Fwpopupview
弹窗控件:支持AlertView、Sheet、自定义视图的PopupView。AlertView中可以嵌套自定义视图,各组件的显示隐藏可配置;Sheet仿微信样式;同时提供自定义弹出。更多配置请参考”可设置参数“,提供OC使用Demo。
Stars: ✭ 361 (+1144.83%)
Mutual labels:  pod
Certified Kubernetes Security Specialist
Curated resources help you prepare for the CNCF/Linux Foundation CKS 2021 "Kubernetes Certified Security Specialist" Certification exam. Please provide feedback or requests by raising issues, or making a pull request. All feedback for improvements are welcome. thank you.
Stars: ✭ 691 (+2282.76%)
Mutual labels:  pod
Swiftproject
swift project that brings together some demos, componented, Target-Action, use Swift
Stars: ✭ 310 (+968.97%)
Mutual labels:  pod
Fcfilemanager
iOS File Manager on top of NSFileManager for simplifying files management. 📂
Stars: ✭ 862 (+2872.41%)
Mutual labels:  pod
Kyshutterbutton
KYShutterButton is a custom button that is similar to the shutter button of the camera app
Stars: ✭ 293 (+910.34%)
Mutual labels:  pod
Frakti
The hypervisor-based container runtime for Kubernetes.
Stars: ✭ 630 (+2072.41%)
Mutual labels:  pod
Highlighter
🖍 Highlight whatever you want!
Stars: ✭ 909 (+3034.48%)
Mutual labels:  pod
Ios Imagezoomviewer
ImageZoomViewer is a simple to use Objective C framework that allows the capability of viewing images with zoom-in zoom-out functionality.
Stars: ✭ 14 (-51.72%)
Mutual labels:  pod
Numericaltextentry
An iOS library for beautiful number entry fields. iPad friendly. Written in Swift.
Stars: ✭ 16 (-44.83%)
Mutual labels:  pod

AMGCalendarManager

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod "AMGCalendarManager"

Remember to add the reason in Info.plist with the key "Privacy - Calendars Usage Description".

How it works

AMGCalendarManager works as a singleton and generates a new Calendar with the Bundle Name.

Basic example:

AMGCalendarManager.shared.createEvent(completion: { (event) in
    guard let event = event else { return }

    event.startDate = date
    event.endDate = event.startDate.addingTimeInterval(60 * 60 * 1) // 1 hour

    event.title = name
    event.notes = notes
    
    AMGCalendarManager.shared.saveEvent(event: event)

})

To get all events saved in this calendar:

AMGCalendarManager.shared.getAllEvents(completion: { (error, events) in

})

You can also get on event by id, delete one or all events, etc.

public var eventStore: EKEventStore

public let calendarName: String

public var calendar: EKCalendar? { get }

static internal let shared: AMGCalendarManager.AMGCalendarManager

public func createEvent(completion: ((_ event: EKEvent?) -> Void)?)

public func saveEvent(event: EKEvent, completion: ((_ error: NSError?) -> Void)? = default)

public func removeEvent(eventId: String, completion: ((_ error: NSError?) -> ())? = default)

public func removeAllEvents(completion: ((_ error: NSError?) -> ())? = default)

public func getAllEvents(completion: ((_ error: NSError?, _ events: [EKEvent]?) -> ())?)

public func getEvents(startDate: Date, endDate: Date, completion: ((_ error: NSError?, _ events: [EKEvent]?) -> ())?)

public func getEvent(eventId: String, completion: ((_ error: NSError?, _ event: EKEvent?) -> ())?)

public func commit() -> Bool

public func reset()

Author

Albert, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].