Reputation: 1
I am building a TVOS app in Xcode. I know it is recommended to have following file structure:
client/
(this folder is outside my project folder)client/templates
(tvml files)client/js
(javascript files)But client/
is not part of my tvosapp.xcodeproj
, therefore in XCode, I cannot see the tVML files.
Questions:
How do I include the /templates
/js
folders in my project to be submitted in XCode?
If I have 2 projects, how can I separate the /templates
/js
folder for each project if I share the same /client
folder?
Upvotes: 0
Views: 146
Reputation: 669
Check out this https://github.com/toshi0383/TVMLKitchen its something I came across a couple days ago and it works great. It requires a bit of restructure to your current TVOS app as it hijacks the Navigation and focus engine (pretty sure at least). I branched what I was working on and used this and my life is so much easier. No server, all parsed on the client. Extremely fast and a lot of flexibility.
Upvotes: 1
Reputation: 503
You need not have the exact same specified structure of client
from the sample code, to me, as a front-end developer it looks bloated.
Have a look at this sample code that I ported from the original sample code which is using a better structured client setup. Though it uses atvjs framework, you'll get a sense of how to better structure your client application.
Upvotes: 0