How to Tab Bar Programmatically (Swift 2023, UIKit, Xcode)

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

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

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

    You have a talent to pass on knowledge in light and easy to comprehend way. Please continue with your videos because they are very very good. And also they are what is needed for the real job. Rare are the projects with storyboards so thank you very much for doing everything programmatically. Looking forward for more from you! Big thanks!!

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

    Man big thanks for tutorials 👍🏻 The way you make it programmatically is awesome because there are few guys who make tutorials programmatically, mostly on storyboard. Keep going bro, waiting for others tutorials especially programmatically 😁

  • @anvard
    @anvard 20 дней назад

    Thanks

  • @johnpatrickechavez1216
    @johnpatrickechavez1216 11 месяцев назад

    What is your xcode version?

  • @viatrisgidcmobility
    @viatrisgidcmobility 7 месяцев назад

    HI I am getting MORE and BACK button together when we have more than 10 tab items i am using swiftUi .. can you please help me to get only back button

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

    Hey I’m making an app and I need to test it off my phone but whenever I plug it into Xcode and run it I’m not able to connect to the local host server running on my Mac. Is there any way to test the app off of local host?

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

      Thats a good question. I've never tried that. I usually just deploy the server to a VPS and use the domain instead of localhost.
      I think its actually possible but you would need to use your mac's private ip address and make sure your mac allows incoming connections like that. Probably would need to make sure your firewall allows it and maybe some settings in the "Sharing" part of Macs system settings.

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

    Useful and cool video as always.
    Keep up the good work

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

    Thank you

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

    So cool video. Definitely like

  • @deluxe092
    @deluxe092 8 месяцев назад +1

    tabBar.barTintColor doesn’t work for me((

    • @ChrisShucksmith-sr1pf
      @ChrisShucksmith-sr1pf 7 месяцев назад

      Use `self.tabBar.isTranslucent = false` in your TabController

    • @sLatee
      @sLatee 4 месяца назад

      hey, I have the same problem. How did you fix it?

    • @abnergarrido7890
      @abnergarrido7890 4 месяца назад +1

      Same here. I'm not sure why happens but I found a way to fix it. You need to set up the appereance of the tab bar manually, the standard and scroll appearance specifically. Add this code to your controller. Change the color palette as pleased:
      let appearance = UITabBarAppearance()
      appearance.configureWithTransparentBackground()
      appearance.backgroundColor = .systemGray3
      self.tabBar.standardAppearance = appearance
      self.tabBar.scrollEdgeAppearance = appearance
      self.tabBar.tintColor = .black
      self.tabBar.unselectedItemTintColor = .gray

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

    I'm getting this error " Value of type 'TabController' has no member 'setViewControllers' "

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

      Make sure that Your TabController class conforms to the UITabBarController sublass. Thats the only reason I can think of.
      Example:
      class TabController: UITabBarController {
      }

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

      @@Codebrah That worked, thanks!

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

    Why change to 13.0?

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

      You don't really need to. Thats just usually what I do so I'm not just developing for ios 15+