How do I disable default focused effect on UIButton in tvOS 15 - tvos

Before the tvOS 15, I can set UIButton type to Custom to disable default focused effect. But it is no working now. Anyone know how to do that ?

You can see the right side panel and check the "Style", it has to be set to "Default".
My version of Xcode is 13.2.1, the button default style would be set to "Plain".
Panel

Related

change tvOS tab bar focus color

I created an appleTV app on tvOS 13! and I'm faced with some tabbar customization problems.
I want to change the focused item color, I can change the text color, but I can't change the white focus background!
And also the tabBar add an alpha to 0.5 on not selected image how to remove it?
Thanks
On tvOS 13 you need to access the standardAppearance to change it:
tabBarController?.tabBar.standardAppearance.selectionIndicatorTintColor = UIColor.red

tvOS UITabBarController hides when its not focused

I have implemented tabbarcontroller for tvOS top navigation and it hides when unfocused but my client has a requirement that tabbarController should be persistent when focused is moved out. Is it possible to keep tabbarController displayed persistently in tvOS?
The redesigned UITabBarController in tvOS 13 remains visible, if you don't implement any additional code to hide it.

Ionic3 - How to change color and size default tab bar

I'm using ionic 3 and angular. I want to change color and size of default tab bar in ionic, but when I modified main.css file, it can build success, but when I re-build, it seem return default status...
I don't know how to create new file css to change it.. How to can change new style of tab bar in ionic 3?
I'm so sorry because this is basic question, I'm a newbie
I am believing that you are asking for the tabs in ionic
It depends whether you are building for android or ios.
If you want to change for Android,
just add $tabs-md-background: color($colors, custom); in variable.scss file.
Where custom is your customized colour.
Similarly, you can change the size as well, depending on your phone os.

How to create a UIButton for tvOS with a clear background color?

I'm trying to create a UIButton of System type with a clear background color. The problem is that it shows a gray background color even if I set it to clearColor. I can do it with a Custom type UIButton, but then the button loses the default effects for focusing and selection.
Does anyone knows how to create a System UIButton with a entirely transparent background?
Since tvOS 11 there is a solution for that using the button type "plain" instead of "system" without loosing the effects for focusing and selection:
Open the button properties in the Interface builder an select "Type"->"Plain"
Set the button background color to "clear color"
Thats it.
Watch Apples Video about "UIButtonTypePlain" here (starts at 13:44):
UIButtonTypePlain explained
In storyboard Attributes Inspector you have to change button type System to Custom.

XCode Remove Navigation Bar From Tabbed Application

I created an app with XCode (tabbed application) and by default it has 2 ViewController. Then I added few more ViewController on my story board.
but I notice that those first two ViewController are different than ViewController I added.
XCode default ViewController for tabbed application it seems has some kind navigation bar on top. but I don't see it on others.
How to remove this 'navigation bar' on those default ViewController? so it has same appearance like others? thanks.
To remove this 'navigation bar' go to the document outline in the storyboard. Select the default view and remove the 'Toolbar'.