Hello everyone !
I don't understand, I write this code to fill the array with the string variable value but there are error.. Below my code :
var Empty_image = ""
var Abductor_machine_image = "Abductor machine"
var Abs_crunch_machine_image = "Abs crunch machine"
var Abs_crunch_oblique_image = "Abs crunch oblique"
var Abs_floor_oblique_image = "Abs floor oblique"
var Abs_incline_bench_image = "Abs incline bench"
var Abs_machine_image = "Abs machine"
var Abs_roman_chair_oblique_image = "Abs roman chair oblique"
var Abs_rotation_crunch_image = "Abs rotation crunch"
let Images3 = [Empty_image, Abductor_machine_image, Abs_crunch_machine_image, Abs_crunch_oblique_image, Abs_floor_oblique_image, Abs_incline_bench_image, Abs_machine_image, Abs_roman_chair_oblique_image, Abs_rotation_crunch_image]
And I have this error for each variable but I don't be able to fix it :
"Cannot use instance member 'Abductor_machine_image' within property initializer; property initializers run before 'self' is available"
Sorry I beginning on swift..