Skip to content

Build fails on XCode 6.2 #2

@ArminGrau

Description

@ArminGrau

Hi,
I'm trying to build the timeDateExtensions.swift with xcode 6.2 for iOS 8.2 and getting a lot of conversion errors:

func combineComponents(left: NSDateComponents,
right: NSDateComponents,
multiplier: Int) -> NSDateComponents
{
let comps = NSDateComponents()
comps.second = ((left.second != NSDateComponentUndefined ? left.second : 0) +
(right.second != NSDateComponentUndefined ? right.second : 0) * multiplier)
...
<'Int' is not convertible to 'NSDateComponents'>

Any idea what's wrong? As far as I see it NSDateComponents.secont still is an int.

by the way: love how this extensions make working with dates more readable!

Armin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions