At 4:09 you place two toolbarItems in the toolbar, and they appear on the screen in the correct locations, but they don't do anything when they are clicked on. How do you make these items actually work as intended?
For anyone is still looking for this .toolbarBackground(Color.blue, for: .bottomBar) // Set the bottom bar background color .toolbarBackground(.visible, for: .bottomBar) // Ensure the background is visible
Thanks Nick, that was a powerful one. I wonder how I may get help, please? I'm interested in connecting a MacOS app to Sql Server. Would there be some possibilities, even for Patreon only, for us to get SwiftUI and Sql Server on MacOS, please? Or where shall I go, maybe you can help me?
Hi, super excited to see you continue the bootcamp! Thank you for your work!
The conclusion for preferring native Toolbar rather than custom Toolbar is so true.
I am learning so much from you. You make learning so interesting. Keep going Sir💥💥💥!
At 4:09 you place two toolbarItems in the toolbar, and they appear on the screen in the correct locations, but they don't do anything when they are clicked on. How do you make these items actually work as intended?
Make them buttons or add tap gestures
We are moving! we are growing!
Please, teach me how to change the color of .bottomBar...
For anyone is still looking for this
.toolbarBackground(Color.blue, for: .bottomBar) // Set the bottom bar background color
.toolbarBackground(.visible, for: .bottomBar) // Ensure the background is visible
What is the best documentation for swiftui on the internet?
Hey nick! Is there any upcoming course?
Heart Full Thank U..🥰
Thankyou ... 'Newbie' question , how to find all the systemName images .. Image(systemName: ???),
Any XCode Hotkeys?
Click plus (library) button on top right of Xcode, then select symbols library
@@SwiftfulThinking
Thankyou , But the popup screen I see only 'controls', 'layout', 'paint', 'other' (left view)
@@stelluspereiraI would suggest watching this playlist from the start: ua-cam.com/video/Giq8jRnh0Gk/v-deo.htmlsi=Msk7u8X9nvzB37vT
Can't we use badges with toolbar?
yes u can.
import SwiftUI
struct ToolBar_BootCamp: View {
@State private var badgeCount: Int = 5 // Example badge count
var body: some View {
NavigationStack {
ZStack {
Color.indigo.opacity(0.4)
.ignoresSafeArea(.all)
Text("Hey!")
.foregroundColor(Color.white)
}
.navigationTitle("Tool Bar BootCamp")
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
ZStack {
Image(systemName: "heart.fill")
if badgeCount > 0 {
Text("\(badgeCount)")
.font(.caption)
.foregroundColor(.white)
.padding(4)
.background(Color.red)
.clipShape(Circle())
.offset(x: 10, y: -10) // Adjust position as needed
}
}
}
ToolbarItem(placement: .navigationBarTrailing) {
Image(systemName: "gear")
}
}
}
}
}
struct ToolBar_BootCamp_Previews: PreviewProvider {
static var previews: some View {
ToolBar_BootCamp()
}
}
Thanks Nick!
TabBar or Toolbar moving forward?
I think we will likely use both together
It really surprised me the .toolbarTitleMenu(), I had no idea about this very handy modifier. Thank you so much!
i love you my teacher
Thanks brother
Thanks Nick, that was a powerful one.
I wonder how I may get help, please? I'm interested in connecting a MacOS app to Sql Server. Would there be some possibilities, even for Patreon only, for us to get SwiftUI and Sql Server on MacOS, please? Or where shall I go, maybe you can help me?
I’m not 100% sure off-hand but we have a lot of experienced devs in the Discord that may know: discord.gg/vhKKyYTGDb
Cool.