Post

Replies

Boosts

Views

Activity

Reply to SFSymbols in TVMLKit app
Have a look at the TVInterfaceCreating protocol. Haven't tested this code, but it should more or less do it. You can get the image from TVML by using resource://<name> as the image URL. class ExtendedInterfaceCreator: NSObject, TVInterfaceCreating {     func resourceImage(name resourceName: String) -> UIImage? {         return UIImage(systemName: resourceName)     } } class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { ... TVInterfaceFactory.shared().extendedInterfaceCreator = ExtendedInterfaceCreator() ... } }
Aug ’20