We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get a compile error for this line of code
let tomorrow = today.add([.Day: 1])
where today is an NSDate object, but only when the optimization level is set to fast (which is the default for release builds).
SWIFT_OPTIMIZATION_LEVEL = -O
The text was updated successfully, but these errors were encountered:
By the way, this is working:
let tomorrow = today.add(days: 1)
Sorry, something went wrong.
Weird! Needs investigation. Thx for the issue.
It's okay with SwiftDate4. The new function which accomplish your request is:
let tomorrow = try! Date().add(components: [.day : 1])
No branches or pull requests
I get a compile error for this line of code
where today is an NSDate object, but only when the optimization level is set to fast (which is the default for release builds).
SWIFT_OPTIMIZATION_LEVEL = -O
The text was updated successfully, but these errors were encountered: