Walks through five input variants so we can see what iOS actually does inside our WKWebView. Each step logs focus / blur / input events so we can spot issues without Xcode console.
5variants
iOSWKWebView
v1bridge
What to look for
• Does the focused input scroll into view cleanly?
• Is the bottom CTA covered by the keyboard?
• Does the gray accessory toolbar (Done / Prev / Next) appear above the keyboard?
• Does autocorrect / autocapitalize fight us?
• Can the user dismiss with Return / tap-outside?
Variant 1 · single-line
Vanilla text input
Default behavior — autocorrect on, no special hints. Tap to focus and observe the keyboard, the CTA position, and the accessory toolbar.
A · default attributes
Autocorrect / autocapitalize / spellcheck all default.
B · autocorrect OFF
For short answers / educational inputs where autocorrect hurts.
C · enterkeyhint="done"
Return key label becomes "Done". Should dismiss the keyboard on press.
Variant 2 · multi-line
Reflection textarea
Multi-line input for open-ended answers. Watch how WKWebView resizes and where the cursor lands.
Reflection
0 characters · Return inserts a newline · Tap outside to dismiss.
Variant 3 · numeric
Numeric input
Numeric keypad via inputmode. Often used for ages, percentages, scale answers.
inputmode="numeric"
Stays as text input but shows the numeric pad. No decimal.
inputmode="decimal"
Decimal point available.
type="number"
Native number type. May show stepper.
Variant 4 · inline
Fill in the blank
Input rendered inline with surrounding sentence text. Common for cloze-style questions.
The single task AI is most likely to take over from me is
.
Does tapping the input scroll the sentence into view? Does the input keep its inline alignment?
Variant 5 · layout
Bottom-CTA layout strategies
Same text input, three CTA behaviors. Tap a button to switch, then focus the input to see how the bottom bar handles the keyboard.
Test input
A · default: rely on iOS auto-scroll and 100dvh reflow. CTA may end up tight against the keyboard.
Done
Lab complete
That's all five variants. Tap Restart to loop, or hit the native X (top-left) to exit.
Findings to capture
Note for each variant:
• Was the CTA visible during typing?
• Did the accessory bar feel out of place?
• Did focus scroll the right element into view?
• Any janky reflows or layout shifts?