Why am i seeing "variable used within its own initial value" in swift?
Example:
var message = "Hello, " + message
This error occurs when you try to use a variable within its own initializer.
Solution:
var message = "Hello, World!"
Example: Solution:Why am i seeing "variable used within its own initial value" in swift?
This error occurs when you try to use a variable within its own initializer.
var message = "Hello, " + message
var message = "Hello, World!"