Type Safely

Share this post
Use .contextMenu on tvOS
typesafely.substack.com

Use .contextMenu on tvOS

Daily Coding Tip 048

Rob Sturgeon
Feb 13, 2021
Share this post
Use .contextMenu on tvOS
typesafely.substack.com

Like .tabItem which was mentioned yesterday, .contextMenu was new last year but has come to a new platform this year, and like .tabItem, I've used one of Apple’s examples.

This time I put in a little more effort, as adapting their example for tvOS actually requires that the Text be made .focusable, which is covered in detail earlier in this post. Onc…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2022 Type Safely
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing