Post

Replies

Boosts

Views

Activity

Reply to Trying to understand some odd behavior in SwiftUI DragGesture
Hi Claude, Thanks for responding. If you are right, then you should force Text to a fixed frame: I agree fixing the width of the Text() does solve the problem. However I am hoping my stars will be a shareable component that others will use. So I would like it to be more robust and not require my devs to need to remember to fix the frames of this view's more dynamic neighbours. How long does that continue ? May be a lot of gestures were stacked before ending. It continues forever. After the app gets into this bad state it is permanently hung Did you try increasing minimum distance ? Thanks for the suggestion I hadn't originally tried this. Unfortunately, I tried multiple values between 0 and 10 and they both exhibit the same hanging behavior, when slowly dragging from 1 to 0. and also from 4 to 5
Aug ’23
Reply to Can't seem to get .accessibilityRotor(_:, textRanges:) working
Problem solved. Adding the children: contain modifier before the identifier seems to prevent the identifier modifier from clobbering the Links Rotor. struct ContentView: View { let mdText = LocalizedStringKey("some text [link](https://apple.com) more text") let text = "some text link more text" var body: some View { VStack { Text(mdText) .accessibilityElement(children: .contain) .accessibilityIdentifier("identifier") } } }
Jun ’23