Skip to content

Instantly share code, notes, and snippets.

View nathandud's full-sized avatar

Nathan Dudley nathandud

View GitHub Profile
@nathandud
nathandud / NumberPadTestApp.swift
Created January 14, 2026 04:47
Unpredictable number pad behavior on iPad with Xcode 26
// If built with Xcode 16, the text fields present the full keyboard with
// numbers on the top row. This has been the default iPadOS behavior for as long
// as I can remember.
// If built with Xcode 26, a number pad popover is shown initially but if the
// text field is tapped again or the cursor is moved, the full keyboard shows
// instead. On subsequent taps into a text field, it's a toss-up whether you get
// the popover or the full keyboard.
import SwiftUI