Show common user interface elements from Apple TV in your native app using TVUIKit.

TVUIKit Documentation

Posts under TVUIKit tag

3 Posts
Sort by:
Post not yet marked as solved
0 Replies
302 Views
I have a tvOS project contains an App target and 3 static libraries: EntryPoint – Static library that contains main , AppDelegate and SceneDelegate Experience – Static library containing my UI elements AppTarget – executable built using above two libraries I have a class "SelectionTable" which subclasses UITableView in Experience target : import UIKit class SelectionTable : UITableView { private var vDataSrc:[String]! func SetDataSrc (_ pDataSrc:[String]) { self.vDataSrc = pDataSrc } func UpdateDataSrc (_ pStringList:[String]) { self.vDataSrc += pStringList } func GetDataSrc () -> [String] { return self.vDataSrc } } I am not using this class anywhere and still i am getting these errors when i build my AppTarget: Cannot find interface declaration for 'UITableView', superclass of 'SelectionTable' Expected a type These above error are coming in generated header file "Experience-Swift.h". This file is auto-generated by compiler. I am not using @objc anywhere in the code, But still the Target-Swift.h file has the below lines: SWIFT_CLASS("_TtC10Experience22SelectionTable") @interface SelectionTable : UITableView - (nonnull instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end When i am marking above class as Private , this error goes away . And also , if i am defining SelectionTable class in EntryPoint library , this error does not occur . I am using similar model for an iOS project also and there i am not facing this issue. I am using :- Swift version : Swift 5.9.2 XCode version : 15.2
Posted Last updated
.
Post not yet marked as solved
0 Replies
340 Views
The alertController.view.tintColor = .yellow statement does not seem to take effect in TVOS 17 when creating alerts. Interestingly, when using the same alert code on TVOS 16, the specified color is applied successfully. I'm seeking assistance in resolving this discrepancy and would appreciate any guidance or solutions you can provide. I could understand that the Alert design aswell is modified which is not mentioned in the release notes of TVOS 17. Please help me out here. TVOS 17: TVOS 16:
Posted
by Ganesh56.
Last updated
.
Post not yet marked as solved
0 Replies
919 Views
We have developed an Apple TV application with a Hebrew (RTL layout) interface. The application utilizes a Swift-based Digit Entry view controller for pin entry. However, we are encountering an issue where the numeric keyboard numbers overlap with the backspace class TVDigitEntryViewController : UIViewController The problem specifically occurs when the Apple TV language is set to English, while the application language is set to Hebrew with RTL layout. As a result, the number 1 from the numeric keyboard is hidden behind the backspace button, as shown in the attached image. We are seeking a solution or suggestions on how to resolve this issue and ensure that the numeric keyboard is properly aligned with the backspace button in our Hebrew Apple TV application.
Posted
by Ganesh56.
Last updated
.