SFSymbols in TVMLKit app

Is it possible to use SFSymbols in TVMLKit app on tvOS?
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.

Code Block
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()
...
}
}


SFSymbols in TVMLKit app
 
 
Q