skip to Main Content

Xcode – Swift: Adding negative numbers

I've got a pretty simple problem with adding negative numbers, but Apple Documentation doesn't really cover this. SwiftUI Code: Text(String(-50 + 5)) This throws the error, Compiling failed: Ambiguous use of operator '-'. However, Text(String(-50)) doesn't throw any errors. I've…

VIEW QUESTION
Back To Top
Search