Open
Description
Hi, first thanks for package.
There is an issue if Textfield is within Geometry reader, last one keeps keyboard reopening because of view redrawn.
GeometryReader { metrics in
VStack{
TextField("Username", text: $username)
.padding(9)
.background(focusedField == .username ? Color.red : Color(.systemGray6))
.cornerRadius(8)
.focusedLegacy($focusedField, equals: .username)
TextField("Password", text: $password)
.padding(9)
.background(focusedField == .password ? Color.red : Color(.systemGray6))
.cornerRadius(8)
.focusedLegacy($focusedField, equals: .password)
TextField("Name", text: $name)
.padding(9)
.background(focusedField == .name ? Color.red : Color(.systemGray6))
.cornerRadius(8)
.focusedLegacy($focusedField, equals: .name)
}
}
Thanks,
Aram
Metadata
Metadata
Assignees
Labels
No labels