Swiftui, Mobile App Development, Programming, Learning To Code, iOS App Development.
var body: some View{ ZStack { backgroundColor .edgesIgnoringSafeArea(.all) VStack{ /* When this button clicks it sets the value of our @State variable. Which is just a reference to our mainColor */ Button("Update Color"){ backgroundColor = Color.purple } } } } } Well, that was quite a bit to cover!