Given an array of UIViews in a tvOS project in Xcode we need to set up UIFocusGuides for each UIView. We need to be able to swipe left and right and up and down to navigate through the various UIViews.
Create a method that will sort the array of UIViews by x,y coordinates and programmatically generate a UIFocusGuide for any UIViews above, to the left, to the right or below a given UIView.
Given an array of UIViews in a tvOS project in Xcode we need to set up UIFocusGuides for each UIView. We need to be able to swipe left and right and up and down to navigate through the various UIViews.
Create a method that will sort the array of UIViews by x,y coordinates and programmatically generate a UIFocusGuide for any UIViews above, to the left, to the right or below a given UIView.
This should be written in Objective-C.