All Questions
Tagged with uitabbar uitabbaritem
416 questions
1
vote
0
answers
102
views
iOS - UITabBarItem long titles overlap using UITabBarAppearance
Ever since iOS 15+, developers have had to explicitly set the UITabBar Appearance. Before this, longer titles on tabs would dynamically resize a bit to make sure they didn't overlap. Now, they just ...
0
votes
0
answers
87
views
How to add these capsule shape behind the selected tab bar item image
I want to make a tab bar with the following features:
selectd tab-bar item has this capsule shape around it's icon only , link to desired tab-bar
I am creating the tab bar programmatically. Can you ...
-1
votes
1
answer
120
views
Add a circle as a selection indicator above UITabbarItem in Swift
I want to add a selection indicator to a UITabbarItem in Swift, like the following image.
I tried to code below but I cannot add the circle above the UITabBar.
On viewDidLoad:
let tabBar = self....
0
votes
0
answers
415
views
How to change the position of an UITabBarItem and its title (Storyboard)
I am currently trying to build an app with Swift that has an UITabBarController. I have added a screenshot down below to show the result that I have right now.
Screenshot when running the app
My goal ...
5
votes
0
answers
256
views
How to set TabBarIcon color correctly in SwiftUI since .accentColor is deprecated?
It seems quite hard to change the color of the selected UITabBarItem in SwiftUI. To define the design at central place in the app, I tried to use .appearance() to do this, but nothing worked:
// Only ...
0
votes
1
answer
210
views
Styling the unselectedItemTintColor UITabBar with iOS 15
I'm having trouble setting the tabbar.unselectedItemTintColor. There is some weird conflict when I try to set both the unselectedItemTintColor and the scrollEdgeAppearance.
I can run this code and ...
-1
votes
1
answer
34
views
How to shorten tab bar config codes?
I have a configuration code for UITabBarItem but it is too much. Is there any way to shorten this code? I couldn't find any extension for that.
let selectedColor = #colorLiteral(red: 0.3921568627, ...
0
votes
1
answer
57
views
Is there any delegate that serves the purpose of tabBar willSelectItem?
I need to do some UI tasks when user selects a UI tab item. Following delegate is available,
-(void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
Although, to answer for my particular ...
1
vote
2
answers
424
views
tabbar middle tab out of tabbar corner
I want to make a tab bar with 5 tab items. I want the middle one ( third ) to be out of tab bar's corner it may be tough to understand therefore I decided to add screenshot
I want to make something ...
1
vote
1
answer
449
views
Is it possible to use different colors for focused and selected state on uitabbaritems at tvOS?
In our tvOS app we have a customised tabbar. now additionally we want to change the background color of the focused/selected item. When I do by tabBarAppearance.selectionIndicatorTintColor = .purple, ...
0
votes
0
answers
713
views
UITabBarController - need to show either of view controller on selecting one of the tabs, depending on certain condition
I have a UITabBarController which has 4 tabs. I want to show different view controllers for second tab bar item. Depending on the condition I want to show the view controllers for that tab bar item.
I ...
-3
votes
1
answer
200
views
UITabBarItem badge colour is showing grey
For some reason badge on one Tab item is showing grey colour. I'm not sure why. It happens only for one Tab, for the rest of tabs it is correct (red colour). How do I fix it? What to look for?
0
votes
0
answers
382
views
Tabbar Items Text Override in Swift 5
Tabbar items text override in large localization strings. I tried below solution and other possible solution but its not working fine. In below solution if number of lines is 2 than its truncate the ...
1
vote
0
answers
685
views
Tabbar item title to multiline not displaying Swift 5 - Only Working with İPhone 11 series model
I have created custom UITabBarController class and set five tabbar items.
I want to set my last item which has index item 4 title/label to multiline.
I have set it through code and added custom code ...
1
vote
1
answer
47
views
UITabBarController resets tab titles color for tabs after presenting new controller
class MainTabBarController: UITabBarController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
welcomeNavigationController.tabBarItem....