Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get focused view frame size in tvOS?

Tags:

swift

tvos

How can I get the size of a focused view in tvOS?

I need its size to move a label from within the view to a new position that fits the focused frame.

like image 853
Teodor Ciuraru Avatar asked Dec 15 '25 19:12

Teodor Ciuraru


1 Answers

I think what you are looking for is the focusedFrameGuide that UIImageView provides.

Using the imageview.focusedFrameGuide.layoutFrame you can determine how to reposition your label.

like image 73
Sense Avatar answered Dec 18 '25 09:12

Sense



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!