Ios swift – How are let assignments within view body handled in SwiftUI?
In SwiftUI, if we have a let that is declared inside the View body code such as: var body: some View { // ... let settingsBar = ZStack{ Image(systemName: "gear") .resizable() .scaledToFit() .frame(width:buttonCircleSide/2,height:buttonCircleSide/2) .foregroundStyle(.white) }.frame(width: buttonCircleSide, height: buttonCircleSide) // ...…