Post

Replies

Boosts

Views

Activity

Comment on SwiftUI subviews traverse issue
for below code: Text("Hello, world!") .accessibilityIdentifier("Text") I need to find the view with accessibilityIdentifier is 'Text', and get the Text sub view's frame; I have searched some solutions, like: 1.PreferenceKey + anchorPreference; 2.UIViewRepresentable; but this solutions require some additional code, can not find a sub view merely through the accessibilityIdentifier of the system.
Topic: UI Frameworks SubTopic: SwiftUI
Jan ’26
Comment on UINavigationBarAppearance background does not extend to the top edge on iPhone Duo
Thank you for the clarification. In our case, the solid blue background is a branding requirement and needs to extend continuously to the top edge. Is there a supported way to achieve this with UINavigationBarAppearance on iPhone Duo, without adding a custom background view? Or is the gap above the navigation bar expected behavior?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’26
Comment on SwiftUI subviews traverse issue
for below code: Text("Hello, world!") .accessibilityIdentifier("Text") I need to find the view with accessibilityIdentifier is 'Text', and get the Text sub view's frame; I have searched some solutions, like: 1.PreferenceKey + anchorPreference; 2.UIViewRepresentable; but this solutions require some additional code, can not find a sub view merely through the accessibilityIdentifier of the system.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jan ’26