Thank you so much for taking your time to try to help. I really appreciate it.
The code is part of a bigger project with a number of pages. I'm on Lesson 6. Everything was perfect up until now. So, I'm stuck. I commented out sections of what I sent but still not working.
Re YouTube, thank you!! Great!
I did not include TLButton because there were no errors indicated. Here it is.
import SwiftUI
struct TLButton: View {
let title: String
let background: Color
let action: () -> Void
var body: some View {
Button {
action()
} label: {
ZStack {
RoundedRectangle(cornerRadius: 10)
.foregroundColor(background)
Text(title)
.foregroundColor(Color.white)
.bold()
}
}
}
}
struct TLButton_Previews: PreviewProvider {
static var previews: some View {
TLButton(title: "Value",
background: .red) {
// Action
}
}
}
When I comment out a section of the view. The build is successful but then it will not show what it should show. Instead, I see this.
TODO`static TODOApp.$main():
0x1055097a0 <+0>: pushq %rbp
0x1055097a1 <+1>: movq %rsp, %rbp
0x1055097a4 <+4>: pushq %r13
0x1055097a6 <+6>: pushq %rax
0x1055097a7 <+7>: callq 0x1055097d0 ; lazy protocol witness table accessor for type TODO.TODOApp and conformance TODO.TODOApp : SwiftUI.App in TODO at
0x1055097ac <+12>: movq %rax, %rsi
0x1055097af <+15>: leaq 0x8995b2(%rip), %r13 ; type metadata for TODO.TODOApp
0x1055097b6 <+22>: movq %r13, %rdi
0x1055097b9 <+25>: callq 0x105badae4 ; symbol stub for: static SwiftUI.App.main() -> ()
-> 0x1055097be <+30>: addq $0x8, %rsp
0x1055097c2 <+34>: popq %r13
0x1055097c4 <+36>: popq %rbp
0x1055097c5 <+37>: retq
What is not visible here is what is printed in red is the following: "Thread 1: "The default FirebaseApp instance must be configured before the default Authinstance can be initialized. One way to ensure this is to call FirebaseApp.configure() in the App Delegate's application(_:didFinishLaunchingWithOptions:) (or the @main struct's initializer in SwiftUI)."
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: