Post

Replies

Boosts

Views

Activity

button's tap area misaligned
Hello ! I've encountered an issue with button's tap area: in some circumstances button's tap area not match with it's geometry. This is happens only when the UI architecture contains NavigationView, TextField, and sheet. SheetTestView.swift Can be reproduced only on real device with iOS15.2 and above, not on simulator. Steps to reproduce: put focus on "input field" press "Push the tempo" button (.sheet based dialog appears) try to dismiss sheet with swipe down action (do not press "Close" button) observe: the tap area for "Refresh" button has shifted down against button frame. The tap area for "Refresh" button stay the same if in step 3 we are trying to close the .sheet based dialog via "Close" button not with the swipe action. Is it a bug ? Is there are any solutions to avoid this issue, except of full disabling of swipe action for sheet based dialog ? Regards, Alexander.
0
0
571
Mar ’22
iOS voiceover for multiline input field
Hello ! I encountered the following issue with voiceover behavior on iOS15.2, also reproduced on iOS14.1: Please note: the voiceover should be ON to reproduce the issue. I've created the multiline input field based on UIKit object (UITextView), because I'am not able to use native SwiftUI TextEditor due to lack of 'isEditing' state. Then I placed this multiline input field into dynamic UI. All works fine If I have some dynamic controls that appears below my input field. But the input field becomes inaccessible when I have a dynamic control above my input field. I've tried to simplify my code as much as possible (please see attachment) ContentView.swift The input field becomes inaccessible after I tap on "Validate" button. All works fine if we move dynamic control ('validationErrorMessage') below the input field ('InputViewRepresentable'). What could you suggest in this case ?
3
0
1.1k
Mar ’22
Can't switch focus between two input fields when voiceover is on (SwiftUI)
I have the following simple demo view: struct DummyTestView: View { @State private var inputValue1 = "" @State private var inputValue2 = "" var body: some View { VStack { Group { TextField("input field1", text: $inputValue1) Text("value1: \(inputValue1)") } .padding( .all) .overlay(RoundedRectangle(cornerRadius: 6) .stroke(Color.black.opacity(0.5), lineWidth: 2) ) .padding( .all) Group { TextField("input field2", text: $inputValue2) Text("value2: \(inputValue2)") } .padding(.all) .overlay(RoundedRectangle(cornerRadius: 6) .stroke(Color.black.opacity(0.5), lineWidth: 2) ) .padding(.all) } } } When I typed something in first input field, then switch to another input field and type something there - I'am not able to switch back to the first input field and edit it. All this could be reproduced only when voice over is on. The issue not reproduced when: replace "VStack" with "Form"; remove any dependency for "inputValue" between "TextField" and "Text". Environment: iOS 14.1, iPhone 12 mini, with enabled voice over. Any suggestions to update iOS to the latest version is not acceptable because our application should support iOS 14 and above.
3
0
1.6k
Sep ’21