After update to Xcode 7.3
, there are bunch of warnings showing in my project.
'++' is deprecated: it will be removed in Swift 3
Any idea to fix this warning ? Any reasons why the ++
and --
will be deprecated in the future ?
After update to Xcode 7.3
, there are bunch of warnings showing in my project.
'++' is deprecated: it will be removed in Swift 3
Any idea to fix this warning ? Any reasons why the ++
and --
will be deprecated in the future ?
Since Swift 2.2, you should use
+= 1
or-= 1
instead.And after looking up Swift's evolution, there are some reasons for removing these operators:
Please check out Swift evolution for more info.