Code Block // // TowerAppApp.swift // TowerApp // // Created by Besleaga Alexandru Marian on 5/17/21. // import SwiftUI @main struct TowerApp: App { var body: some Scene { WindowGroup { Text("5/17/21") Text(greeting + otherGreeting + name) } } } let greeting = "Welcome!" let otherGreeting = " Have a nice time!" let name = " Marie Curie" Button("Sign In", action: signIn) struct Button<Label> where Label : View{ Button(action: signIn) { Text("Sign In") } }
Cannot find
Code Block 'signIn'
in scopeCannot find type
Code Block 'signIn'
' in scopeHow to declare the UI Button ?