Post

Replies

Boosts

Views

Activity

Reply to How to detect screen size in CarPlay?
Yes, I have an urgent need to know the dimensions of my screen. But it's not an initial problem. In my CarPlay application I am using CPGridTemplate. In my design I have to use 8 buttons that are aligned 4 buttons per row. According to the documentation, this is the default behavior. However, it is not working like this. I have filed this problem but have not got any response yet https://developer.apple.com/forums/thread/726487 Hence, the only option to move my buttons is to add empty spaces, I'm need to satisfy 2 rows in various different screen sizes. That's why I have to calculate screen dimensions to know how many empty spaces I need to add. Ofc, adding empty spaces seem ridiculous, but this is the only working option right now
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’23
Reply to How to detect screen size in CarPlay?
Yes, I have an urgent need to know the dimensions of my screen. But it's not an initial problem. In my CarPlay application I am using CPGridTemplate. In my design I have to use 8 buttons that are aligned 4 buttons per row. According to the documentation, this is the default behavior. However, it is not working like this. I have filed this problem but have not got any response yet https://developer.apple.com/forums/thread/726487 Hence, the only option to move my buttons is to add empty spaces, I'm need to satisfy 2 rows in various different screen sizes. That's why I have to calculate screen dimensions to know how many empty spaces I need to add. Ofc, adding empty spaces seem ridiculous, but this is the only working option right now
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to How to detect screen size in CarPlay?
This shows the sizes of iPhone screen but it does not show the size of the CarPlay screen
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23