Shaideru

All things iOS & Swift

Initializing variables cleaner with xcode7 beta-5 & swift2

Sometimes when creating a variable, a couple of alerts warnings shows up,

“variable was not initialize”
“variable ‘ ‘ was written but never used”

Most of Us ignores it and go on, but if you want your code to be cleaner, warning-free project, here’s a work around for you.

 

3 Discussions on
“Initializing variables cleaner with xcode7 beta-5 & swift2”

Leave A Comment

Your email address will not be published.