Thoughts on TvOS and WatchOS support #303
Replies: 4 comments
-
In principle I am open for all platforms. I personally don't own an AppleTV nor AppleWatch. This makes testing and further bug fixes difficult for me. AmperfyKit can be adjusted to get work on those platforms. I think we can fix that UIView issue. |
Beta Was this translation helpful? Give feedback.
-
I tried to compile amperfy for TvOS but it is next to impossible. To many things are unavailable. The code becomes an unreadable mess with all the #if and I'm not even close to getting it to compile. Maybe it is easier to add a subfolder or project for TvOS, write specific UI code for the platform and only add a single #if to the scene delegate. That means we would effectively end up with two separate code bases that might share common code where possible, but would be mostly separate. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the investigation. |
Beta Was this translation helpful? Give feedback.
-
I do understand not wanting to publish for a platform you cannot debug on. There are always device specific bugs the simulator doesn't catch. Nevertheless, I will probably move forward with implementing a TvOS version, since I need it for personal use. I'm not sure if I have enough time to finish it all by myself, but time will tell 😄 Wether you want to merge these efforts in the end is up to you. I can totally understand not wanting to maintain a platform you have no access to. |
Beta Was this translation helpful? Give feedback.
-
Are there any plans for a TvOS or WatchOS version?
I would gladly help with any development for these platforms. However, I never personally developed an TvOS App and my watchOs experiences are also pretty limited. That being said, I do have plenty of experience with AppKit and UlKit, so it shouldn't be too hard to pick up these platforms.
Based on my understanding, TVOS is probably the easier target since it supports a subset of UlKit. At least AmperfyKit should be easy to port and parts of the UI might also carry over.
For watchOS however, things are more difficult. It probably requires a full UI rewrite in SwiftUI. Maybe a stripped down version of Amperfy that is configured using the iOS app would be a good starting point? Also AmperfyKit uses UIKit in some places. While UIImage is available and there is WKInterfaceDevice to replace UIDevice, UIView for example, is not available. So that might be problematic as well.
Any thoughts on that? E.g. Is it feasible to extract all UI specific code (aka code that uses UIView) from AmperfyKit?
Beta Was this translation helpful? Give feedback.
All reactions