Slide 18
Slide 18 text
@amlcurran
Private extensions for local code
• Private extensions provide even more specific wrappers
• Write code in your domain, not Apple’s
fileprivate extension EKEventEditViewController {
convenience init(calendarItem: SCCalendarItem,
delegate: EKEventEditViewDelegate,
eventStore: EKEventStore = EKEventStore.instance) {
self.init()
self.eventStore = eventStore
self.event = EKEvent(representing: calendarItem)
self.editViewDelegate = delegate
}
}