How to use Toolbar in SwiftUI | Bootcamp #63

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 27

  • @oleksandr_honcharov
    @oleksandr_honcharov Рік тому +2

    Hi, super excited to see you continue the bootcamp! Thank you for your work!

  • @austin3134
    @austin3134 Рік тому +2

    The conclusion for preferring native Toolbar rather than custom Toolbar is so true.

  • @alisampson6639
    @alisampson6639 3 місяці тому +1

    I am learning so much from you. You make learning so interesting. Keep going Sir💥💥💥!

  • @kurtschmucker4229
    @kurtschmucker4229 Рік тому

    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?

  • @keycheung6898
    @keycheung6898 Рік тому +2

    We are moving! we are growing!

  • @talesvalente
    @talesvalente Рік тому +1

    Please, teach me how to change the color of .bottomBar...

    • @glaudston_
      @glaudston_ 11 днів тому

      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

  • @YaHagh14
    @YaHagh14 Рік тому

    What is the best documentation for swiftui on the internet?

  • @amish-t8468
    @amish-t8468 Рік тому

    Hey nick! Is there any upcoming course?

  • @knowledgeispower4953
    @knowledgeispower4953 Рік тому

    Heart Full Thank U..🥰

  • @stelluspereira
    @stelluspereira 10 місяців тому

    Thankyou ... 'Newbie' question , how to find all the systemName images .. Image(systemName: ???),
    Any XCode Hotkeys?

    • @SwiftfulThinking
      @SwiftfulThinking  10 місяців тому

      Click plus (library) button on top right of Xcode, then select symbols library

    • @stelluspereira
      @stelluspereira 10 місяців тому

      @@SwiftfulThinking
      Thankyou , But the popup screen I see only 'controls', 'layout', 'paint', 'other' (left view)

    • @SwiftfulThinking
      @SwiftfulThinking  10 місяців тому

      @@stelluspereiraI would suggest watching this playlist from the start: ua-cam.com/video/Giq8jRnh0Gk/v-deo.htmlsi=Msk7u8X9nvzB37vT

  • @sakshanagpal2379
    @sakshanagpal2379 5 місяців тому +1

    Can't we use badges with toolbar?

    • @sai2989
      @sai2989 3 місяці тому

      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()
      }
      }

  • @gucp
    @gucp Рік тому

    Thanks Nick!

  • @30guarino
    @30guarino Рік тому

    TabBar or Toolbar moving forward?

  • @andresraigoza2082
    @andresraigoza2082 Рік тому +1

    It really surprised me the .toolbarTitleMenu(), I had no idea about this very handy modifier. Thank you so much!

  • @김성연-z8u
    @김성연-z8u Рік тому

    i love you my teacher

  • @eliasayele1102
    @eliasayele1102 Рік тому

    Thanks brother

  • @TsiriniainaRakotonirina
    @TsiriniainaRakotonirina Рік тому

    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?

    • @SwiftfulThinking
      @SwiftfulThinking  Рік тому

      I’m not 100% sure off-hand but we have a lot of experienced devs in the Discord that may know: discord.gg/vhKKyYTGDb

  • @ortezan4186
    @ortezan4186 Рік тому

    Cool.