I am having an issue with chapter-6 page 115. It shows to put the line:
"let segmentControl = UISegmentControl(items: [“Standard”. “Hybrid”, “Satellite”])
Inside the “loadview” function but that gives me an error.
I moved it outside the function and that fixed it but now in chapter-7 it is giving me an error saying "cannot use instance member standardString within property initializers.
Image-1 is the error I get in chapter-6 (could not load this one being new I can only upload one image) and Image-2 is the error I get in chapter-7 after moving the line out of the “loadview” function