declare a character variable and set its value to a dollar sign. in swift code example
Example: swift variable in a string
let x = 10
let string = "x equals \(x) and you can also put expressions here \(5*2)"
let x = 10
let string = "x equals \(x) and you can also put expressions here \(5*2)"