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

kjmcneish

  • 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: https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11
Check out our Robot Tic-Tac-Toe app: https://itunes.apple.com/us/app/robot-tic-tac-toe/id990638517?mt=8
« Last Edit: November 15, 2015, 10:13:41 AM by kjmcneish »