Skip to content

Conversation

@ooii
Copy link

@ooii ooii commented Jan 18, 2026

Problem

When adding a new server connection, users need to enter a URL (e.g., https://audiobooks.example.com). The standard keyboard makes this tedious because:

  • The . key requires switching to the symbols keyboard
  • No quick access to / or common TLDs like .com

Solution

Added .keyboardType(.URL) to the server endpoint TextField in ConnectionAddSheet.swift.

Before

TextField("connection.add.endpoint", text: $viewModel.endpoint)
    .textContentType(.URL)
    .autocorrectionDisabled()
    .textInputAutocapitalization(.never)

After

TextField("connection.add.endpoint", text: $viewModel.endpoint)
    .keyboardType(.URL)  // ← Added
    .textContentType(.URL)
    .autocorrectionDisabled()
    .textInputAutocapitalization(.never)

Result

The URL keyboard provides:

  • Direct access to . on the main keyboard
  • Quick access to /
  • .com button (and other TLDs via long press)
  • Better UX for entering server addresses

Test Plan

  • Open "Add Connection" sheet
  • Tap on the URL field
  • Verify URL keyboard appears with ., /, and .com easily accessible

🤖 Generated with Claude Code

Add .keyboardType(.URL) modifier to the server endpoint TextField in
ConnectionAddSheet. This presents the URL-optimized keyboard which
includes dedicated keys for ".", "/" and ".com" making it easier for
users to enter server addresses.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant