Author Topic: Fixing "Initialization of immutable value" and "Initialization of var" warnings  (Read 5255 times)


  • Administrator
  • *****
  • Posts: 719
    • View Profile
The Swift 2.0 compiler now gives you a warning if you declare a variable or constant, but never use it. To get rid of this warning, simply remove the variable or constant declaration.

All the best!
Kevin McNeish
Author of Learn to Code in Swift:
Check out our Robot Tic-Tac-Toe app:
« Last Edit: November 15, 2015, 10:13:41 AM by kjmcneish »