Skip to content

[ios-685] Update old country picker screen - #1

Closed
rahuly-simform wants to merge 3 commits into
intree-masterfrom
rahul/feature/ios-685-update-old-country-picker-screen
Closed

rahuly-simform wants to merge 3 commits into
intree-masterfrom
rahul/feature/ios-685-update-old-country-picker-screen

Conversation

@rahuly-simform

Copy link
Copy Markdown

No description provided.

@rahuly-simform
rahuly-simform requested review from abhi-m-simformsolutons and a balanced review from Copilot October 6, 2026 07:57
@rahuly-simform rahuly-simform added the feature New feature or request label Oct 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Search state, row spacing, and the custom section index have functional and accessibility issues.

Review effort: Balanced
Findings: 6 Medium severity

Open (6)
What changed in this PR

Updates the iOS country picker’s presentation and customization.

Changes:

  • Adds configurable row, header, footer, and section-index styling.
  • Introduces external filtering and a custom section index.
  • Dismisses the keyboard before presenting the picker.
File Description
PhoneNumberKit/​UI/​PhoneNumberTextField.swift Ends editing before picker presentation.
PhoneNumberKit/​UI/​CountryCodePickerViewController.swift Implements filtering and extensive picker UI customization.
PhoneNumberKit/​UI/​CountryCodePickerOptions.swift Exposes the new styling options.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +140 to +142
if let rowHeight = options.rowHeight {
tableView.rowHeight = rowHeight + (options.rowSpacing ?? 0)
}
}

if let rowSpacing = options.rowSpacing, let cell = cell as? Cell {
cell.setRowSpacing(rowSpacing, color: options.backgroundColor)
Comment on lines 346 to 348
var isFiltering: Bool {
searchController.isActive && !isSearchBarEmpty
}

var isSearchBarEmpty: Bool {
searchController.searchBar.text?.isEmpty ?? true
!searchText.isEmpty
}
Comment on lines +456 to +459
let dragGesture = UILongPressGestureRecognizer(target: self, action: #selector(handleDrag))
dragGesture.minimumPressDuration = 0
dragGesture.delegate = self
addGestureRecognizer(dragGesture)
Comment on lines +469 to +472
NSLayoutConstraint.activate([
stackView.topAnchor.constraint(equalTo: topAnchor),
stackView.bottomAnchor.constraint(equalTo: bottomAnchor),
stackView.centerXAnchor.constraint(equalTo: centerXAnchor)
Comment on lines +617 to +619
private func updateColors() {
shapeLayer.fillColor = options.sectionIndexBubbleBackgroundColor?.cgColor
layer.shadowColor = options.sectionIndexBubbleShadowColor?.cgColor
@abhi-m-simformsolutons
abhi-m-simformsolutons changed the base branch from master to intree-master October 6, 2026 08:29
@abhi-m-simformsolutons
abhi-m-simformsolutons deleted the branch intree-master October 6, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants