title: Swift unary operator error
body: <p>Why is it that when I have a line of code:</p>
  
  <pre><code>MoneyScreen1.text = "£" + String(moneyConstants.money) + ".00"
  </code></pre>
  
  <p>However on a different file of my project I have:</p>
  
  <pre><code>moneyLabel.text = "£" + String(moneyConstants.money) + ".00"
  </code></pre>
  
  <p>but I get two errors:</p>
  
  <pre><code>Consecutive statements on a line must seperated with a ';'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Unary operator '+' cannot be applied to an operand of type 'String'
  </code></pre>
  
  <p>but the line is almost exactly the same, other than a different name for the label being edited. Any help would be appreciated.</p>
  
  <p>EDIT:</p>
  
  <p>Full function:</p>
  
  <pre><code>func checkValues() {
      moneyLabel.text = "£" + String(moneyConstants.money) + ".00"
      let savedValues = UserDefaults.standard
      savedValues.setValue(moneyConstants.money, forKey: "money")
      savedValues.setValue(buildingLevels.jitterClickNumber, forKey:"jitterClickBuildingLevel")
      savedValues.setValue(buildingLevels.macrosNumber , forKey:"macrosBuildingLevel")
      savedValues.setValue(buildingLevels.autoClickerNumber , forKey:"autoClickerBuildingLevel")
      savedValues.setValue(buildingLevels.anotherPCNumber, forKey:"anotherPCBuildingLevel")
      savedValues.setValue(buildingLevels.workerNumber , forKey:"workerBuildingLevel")
      savedValues.setValue(buildingLevels.houseNumber , forKey:"houseBuildingLevel")
      savedValues.setValue(buildingLevels.officeNumber , forKey:"officeBuildingLevel")
      savedValues.setValue(buildingLevels.skyriseNumber , forKey:"skyriseBuildingLevel")
      savedValues.setValue(buildingLevels.planetNuber , forKey:"planetBuildingLevel")
      jitterClickCostLabel.text = "£" + String(buildingConstants.jitterClickConstantCost) + ".00"
      macrosCostLabel.text = "£" + String(buildingConstants.macrosConstantCost) + ".00"
      autoClickerCostLabel.text = "£" + String(buildingConstants.autoClickerConstantCost) + ".00"
      anotherPCCostLabel.text = "£" + String(buildingConstants.anotherPCConstantCost) + ".00"
      workerCostLabel.text = "£" + String(buildingConstants.workerConstantCost) + ".00"
      houseCostLabel.text = "£" + String(buildingConstants.houseConstantCost) + ".00"
      officeCostLabel.text = "£" + String(buildingConstants.officeConstantCost) + ".00"
      skyriseCostLabel.text = "£" + String(buildingConstants.skyriseConstantCost) + ".00"
      planetCostLabel.text = "£" + String(buildingConstants.planetConstantCost) + ".00"
      moneyLabel.text = "£" + String(moneyConstants.money) + ".00"
  }
  </code></pre>
  
  <p>Declaration of label:</p>
  
  <pre><code>@IBOutlet var moneyLabel: UILabel!
  </code></pre>