I got a problem with Swift 2.0 and NSDateComponents.
let calendar = NSCalendar.currentCalendar()
let components: NSDateComponents = calendar.components([.Hour,
.Minute, .Second], fromDate: self.dateTime , toDate: NSDate(), options: nil)
I know since Swift 2.0 .Hour | .Minute can no longer be used so tried it with the new way with OptionSetType.
Like answered here: Xcode 7: Can't use CalendarUnitMonth in Swift 2.0, Xcode 7
But it doesn't work. XCode gives me the following error: 'Element.Protocol' does not have a member named 'Hour'
Does anybode have an idea on how to fix it?