Questions tagged [view-hierarchy]
A view hierarchy defines the relationships of the views to one another.
view-hierarchy
53
questions
-4
votes
1
answer
28
views
View Hierarchy Not Capturing Location Authorization Prompt
Why does the view hierarchy NOT capture the location authorization prompt?
1
vote
1
answer
698
views
SwiftUI ZStack and Xcode 3D View Hierarchy
I'm learning SwiftUI. When I have a ZStack say
ZStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
...
0
votes
2
answers
3k
views
Is there any free library that I can use to make tree view structure in react JS [closed]
I want to make a tree view structure in React JS. I already use the package "goJS" but I am facing some issues in it. As the price of this package is very high so I can't purchase it.
The ...
1
vote
0
answers
491
views
Xcode debug cannot capture view hierarchy on macbook M1
In one project, 'capture view hierarchy' and 'pause program execution' buttons are simply not working. 1 out of 20 times it's showing blank screen saying Unable to capture view hierarchy, but other ...
0
votes
1
answer
616
views
View Hierarchy not showing on XCode 13
I recently updated Xcode to Xcode 13.
I opened an old project and tried to edit a xib file with interface builder.
I can't figure out how to show the view hierarchy that used to be on the left on IB.
...
1
vote
0
answers
326
views
Simultaneous Gestures not working for a ZoomableScrollView in SwiftUI
Using Swift5.3.2, iOS14.4.1, Xcode12.4,
I am trying to use the .simultaneousGesture modifier in SwiftUI.
As far as I understood, this modifier should make sure that gestures (such as tap, longpress, ...
0
votes
0
answers
423
views
TabView disconnects when rotating to Landscape due to SwiftUI's re-render of parent-Views
Using Swift5.3.2, iOS14.4.1, XCode12.4,
As the following code shows, I am working with a quite complex TabView in Page-Mode in SwiftUI.
i.e. using iOS14's new possibility to show Pages:
.tabViewStyle(...
0
votes
3
answers
2k
views
VideoPlayer in SwiftUI stops playing when parent-View updates
Using Swift5.3.2, iOS14.4.1, Xcode 12.4,
I am successfully running a VideoPlayer in SwiftUI.
I am calling the Player view with this code: VideoPlayer(player: AVPlayer(url: url)).
The problem is that ...
2
votes
1
answer
224
views
How to find where UIView has been created in code - swift - Programmatically
If I see a UIView in Debug View Hierarchy and I don't know where it comes from,
Is there a way to see where it has been programmatically created in code?
This question describes and explains the ...
3
votes
1
answer
473
views
viewWillAppear not called apparently due to my view hierarchy
This appears to be a well documented problem, yet the solutions online have not worked.
Here's just a sample list of posts that failed to provide me with a working answer:
ViewWillAppear not ...
2
votes
1
answer
2k
views
SwiftUI - Responding to taps in parent View
TL;DR:
I want to trigger an action when (parent) state changes. This seems difficult in a declarative context.
Remarks
The challenge here is that I am not trying to make a property of one view ...
8
votes
1
answer
6k
views
Child view controller should have parent view controller but actual parent is (UIViewControllerHierarchyInconsistency)
I have an app which has UITabbarController as the initial window(after logging-in i set it as rootViewController)
This tabbarController has 4 different tabs in it which are all UIViewControllers ...
1
vote
1
answer
632
views
Customizing UINavigationBar not working because of weird UINavigationBar view hierarchy
My app has many ViewControllers that are pushed on navigation stack.
I have configured UINavigationBar appearance globally in AppDelegate as below.
let appearance = UINavigationBar.appearance()
...
0
votes
1
answer
112
views
Warning: Attempt to present ViewController on ViewController whose view is not in the window hierarchy (w/ UIAlertController)
I'm building a chat app where there are two types of views to be modally presented over the chat screen: a UIAlertController for users to select media to send, and a popover if the current user wants ...
55
votes
1
answer
8k
views
SwiftUI UITableView was told to layout its visible cells and other contents without in view hierarchy
I have a list in a view (lets call it view A) where I push a view B via NavigationLink from view A and manipulate the CurrentSubjectValue to the initial view A. The moment the data is added and the ...