Easy Custom Animated Tab Bar in SwiftUI Tutorial for iOS 15

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 51

  • @jotee804
    @jotee804 2 года назад +3

    Very cool and useful, great work

  • @fhazel291
    @fhazel291 9 месяцев назад

    Thank you, this was very useful and clear

  • @isstylertho
    @isstylertho Год назад +2

    I FOUND AN EASIER WAY IF YOU ARE TRYING TO USE A NAME WITH A "."
    Say you want to use a bulleted list named "list.bullet"
    you would write case list = "list.bullet" and it works perfectly

  • @shafferzeyn9710
    @shafferzeyn9710 2 года назад +2

    you are perfect channel

  • @cactus-cj1937
    @cactus-cj1937 6 месяцев назад

    thank you so much, your video really helped me out.

  • @SinaKahsay-m9h
    @SinaKahsay-m9h Месяц назад

    amazing video

  • @moh3n493
    @moh3n493 10 месяцев назад +2

    How to hide this custom tabbar in detail views?

  • @marcelczubak9179
    @marcelczubak9179 2 года назад +7

    Hey, great tutorial! Just wondering what's the best approach to linking each Tab button to a specific view. I have a few views created already along with this custom tab, and I want to navigate from view to view in the Tab, without the ForEach loop.
    Any tips appreciated :)

    • @Andrew_Pap
      @Andrew_Pap 2 года назад +3

      Hey, did you find a solution? I have the same question. If you found a way to link the private var tabSelected with a tab number or something else, you can probably do it with an if statement. Up to now I haven't found a way to see in which tab I am.

    • @marcelczubak9179
      @marcelczubak9179 2 года назад +1

      @@Andrew_Pap stuck on the same 😂

    • @marcelczubak9179
      @marcelczubak9179 2 года назад +1

      i’ll look into it

    • @Andrew_Pap
      @Andrew_Pap 2 года назад

      @@marcelczubak9179 Ok, me too. I'll send a reply if I find anything. Try to maybe also assign a view to the enum elements themselves.

    • @Andrew_Pap
      @Andrew_Pap 2 года назад +10

      @@marcelczubak9179 Ok so I found a way to do it. Instead of the ForEach loop you use an if statement:
      if tabSelected == .house {
      View()
      }
      and then it should be:
      }
      }
      VStack {
      ...

  • @RichuPatel-t3e
    @RichuPatel-t3e Год назад

    Thank you boss, really appreciate this

  • @jonathandmgz5253
    @jonathandmgz5253 10 дней назад

    I love man ❤

  • @abdouett3676
    @abdouett3676 2 года назад +1

    Great work! Thanks!

  • @epicfortnitesongs
    @epicfortnitesongs 2 года назад +5

    hi, I got a question, What should I do if the sf symbol I want to implement has a . in its name, for example person.circle?

    • @epicfortnitesongs
      @epicfortnitesongs 2 года назад

      @Matthew Badsey no ☹️

    • @asadbekabdullaev4463
      @asadbekabdullaev4463 Год назад +1

      did you figure it out?

    • @DevSibonelo
      @DevSibonelo Год назад +6

      Try this
      enum Tab: String, CaseIterable {
      Case locationFill = “location.fill”
      }
      I could be wrong but worth a shot

  • @peteandloistri7270
    @peteandloistri7270 Год назад

    Thanks for this dude 👍

  • @jordan2899ify
    @jordan2899ify Год назад +9

    how connect it to a View??

  • @gavinbeard8188
    @gavinbeard8188 2 года назад +2

    Great tutorial, is there a way to assure that If you have a ListView behind the tab bar, the last item is not obscured by the tab bar when scrolling? I find that if you have a list that goes past the end of the screen, when you scroll to the end of the list the last item is always blocked by the tab bar

    • @sraldous
      @sraldous Год назад

      Add bottom padding to the VStack to match the height of the tabBar

    • @lenartpapez6058
      @lenartpapez6058 Год назад +1

      @@sraldous But then you lose the ultraThinMaterial effect.

    • @sraldous
      @sraldous Год назад +2

      @@lenartpapez6058 Try putting bottom padding on the last item in the list, set padding equal to height of the tabbar (60 in this example).

  • @Stricken174
    @Stricken174 2 года назад

    Thank you!

  • @ElianasJourney
    @ElianasJourney Год назад +1

    how to connect it in url? (webview)?

  • @traissac
    @traissac Год назад

    hello i just want know you can put a link a view on each icon, it's possible to add a small code ? Thinks

  • @dugrut1325
    @dugrut1325 Год назад +1

    pretty tabBar ... but now what? How do we practically give this tabbar substance? Connect it to a View, Bool, Sheet or Navigationlink, anything???

    • @AdeepaDevinda
      @AdeepaDevinda 8 месяцев назад

      yeah I just followed the tutorial and wasted about an hour
      having no idea how to connect with a View
      if y'all have any idea please let me know
      thanks

  • @louisagareiss
    @louisagareiss Год назад

    How to not show the Tab Bar on every View? for example on a Login View

    • @ShaneCurtis1705
      @ShaneCurtis1705 9 месяцев назад

      Have a main content view then make each page a seperate view that is projected on to the main

  • @hoshisato2687
    @hoshisato2687 Год назад +2

    I really like this because I have more control over the appearance of the tab bar, especially the rounded ends! However, I wish it were more like the TabView in the docs, where the whole tab-to-view mechanism is just declarative and seamless (and has badges!):
    TabView {
    ReceivedView()
    .badge(2)
    .tabItem {
    Label("Received", systemImage: "tray.and.arrow.down.fill")
    }
    SentView()
    .tabItem {
    Label("Sent", systemImage: "tray.and.arrow.up.fill")
    }
    AccountView()
    .badge("!")
    .tabItem {
    Label("Account", systemImage: "person.crop.circle.fill")
    }
    }

  • @sheetalshinde17
    @sheetalshinde17 Год назад

    how to add navigations on tap of every tab ?

    • @illieehh
      @illieehh 10 месяцев назад

      I have the same question

  • @yrmuq
    @yrmuq Год назад

    Cola) eah coolaaa

  • @snorkelmonkey2581
    @snorkelmonkey2581 2 года назад

    do you need a mac/ios device

  • @bjp_for_2024
    @bjp_for_2024 3 месяца назад

    why using both defalt tab and custom tab - any reason?

  • @isstylertho
    @isstylertho Год назад

    For those that cannot find the answer on how to use this if there is a "." in the name:
    "Try this
    enum Tab: String, CaseIterable {
    Case locationFill = “location.fill”
    }
    I could be wrong but worth a shot"
    Thanks @sibonelogumede5893

  • @Andii71
    @Andii71 2 года назад +1

    hi, I got a question, What should I do if the sf symbol I want to implement has a . in its name, for example calendar.circle?

    • @amolsrivastava3904
      @amolsrivastava3904 2 года назад +1

      I also have this question.

    • @isstylertho
      @isstylertho Год назад

      @@amolsrivastava3904 For those that cannot find the answer on how to use this if there is a "." in the name:
      "Try this
      enum Tab: String, CaseIterable {
      Case locationFill = “location.fill”
      }
      I could be wrong but worth a shot"
      Thanks @sibonelogumede5893

    • @isstylertho
      @isstylertho Год назад

      For those that cannot find the answer on how to use this if there is a "." in the name:
      "Try this
      enum Tab: String, CaseIterable {
      Case locationFill = “location.fill”
      }
      I could be wrong but worth a shot"
      Thanks @sibonelogumede5893