What I have here is 3 buttons. Btn2
is disabled. When Btn1
is focused, I can't move it to Btn3
.
All what I need is when Btn2
is disabled, I can move between Btn1
and Btn3
by swiping down and up on the TV controller.
+----+
|Btn1|
+----+
+----+ +----+
|Btn2| |Btn3|
+----+ +----+
I tried to implement the focus guide, but no luck
let focusGuide = UIFocusGuide()
view.addLayoutGuide(focusGuide)
focusGuide.topAnchor.constraint(equalTo: btn1.topAnchor).isActive = true
focusGuide.bottomAnchor.constraint(equalTo: btn3.bottomAnchor).isActive = true
What exact are topAnchor, bottomAnchor etc. about? There is no documentation on this. Please shed some light on. Thanks!