Posts

Post not yet marked as solved
0 Replies
734 Views
How to show activity indicator like here?In this moment i'm using custom UIViewController that have activity indicator. I just show it with show(_ vc: UIViewController, sender: Any?) but i feel like it's wrong way. The reason is that in that case i have problem with menu button. I want to catch press action and pass in to paren view controller. Now press button just close view controller with activity indicator.In the app provides by apple i saw loader screen like on the screenshot and it work the same way i want. I didn't found something like this in the UIKit so i have no idea what to do.
Posted Last updated
.
Post not yet marked as solved
0 Replies
368 Views
I'm developing a side navigation that pulls out from behind the edge of the screen. The problem is that sometimes the Focus Engine determines the next focused item incorrectly. Instead of selecting the next item in the navigation bar, the Focus Engine jumps to the view that is under the navigation bar. This behavior is wrong.I've tried disabling the container's ability to get focus when the navigation bar is open, but UIFocusGuide stops working in this case.I also tried to dismiss the focus update if the next focus element is outside the navigation bar. It also didn't help, in which case the transition just doesn't happen.I use preferredFocusEnvironments to remember the last selected item in the navigation bar.I have an assumption that my problem can be solved by using focusItems(in rect: CGRect) -> [UIFocusItem]. I tried to implement this method but it didn't have any effect.In this regard I have three questions:1. In what direction should I move to solve my problem?2. How exactly does the Focus Engine look for the next focus element? There is very little information about this.3. If my assumption about focusItems(in rect: CGRect) -> [UIFocusItem] is incorrect, explain for what purpose does UIFocusItemContainer exist? What problem does it solve?
Posted Last updated
.