Customize Keyboard in tvOS
Asked Answered
A

3

7

I use UISearchController to search inline with keyboard, textfield and results in one screen. Does tvOS allow to customize keyboard? I want to use dark design, but I don't know how to customize the keyboard. For example YouTube app did that. They have black screen with white keyboard

Aluminous answered 18/11, 2015 at 9:39 Comment(1)
check out this example developer.apple.com/library/prerelease/tvos/samplecode/…Specialist
N
4

A UISearchController has a UISearchBar, which conforms to UITextInputTraits. This means it has a keyboardAppearance which you can set to UIKeyboardAppearanceDark to get a dark keyboard appearance. This isn't identical to what happens in the YouTube app, but it's probably the closest you can get.

Noemi answered 9/1, 2016 at 15:52 Comment(1)
Yeah, did the same way by setting 'UIKeyboardAppearanceDark'Aluminous
T
3

From the Apple TvOS docs here: https://developer.apple.com/library/prerelease/tvos/documentation/General/Conceptual/AppleTV_PG/CreatingaGreatTextInputExperience.html

"Use UIAlertController or UITextField to customize the keyboard experience and create keyboards specific to your app; for example, an email-specific keyboard or a numeric keyboard. Both UIAlertController and UITextField support all of the available options in UIKit/UITextInputTrailts.h. The inputAccessoryView and inputAccessoryViewController APIs also allow you to customize the keyboard experience."

It seems you can create custom keyboards but maybe not if you're using UISearchController. This document implies that you have to use UITextField in order to customize the keyboard. So it would be a little bit more work but if you don't like the default experience of the UISearchController it shouldn't be that hard to wire up a TableView with a textfield in order to change the user experience.

Thunderstruck answered 18/11, 2015 at 14:31 Comment(0)
G
2

I don't think tvOS allows customizing keyboards yet, because in Application Extension section of tvOS there is no Custom Keyboard thing the way there is for iOS.

Gluttonous answered 18/11, 2015 at 11:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.